string. If yes, warn and ignore it. Don't overwrite valid SONAME
with empty string.
+
+ * lexsup.c (parse_args): Check whether provided SONAME is empty
+ string. If yes, warn and ignore it. Don't overwrite valid SONAME
+ with empty string.
+
* emultempl/pe.em: Initialise insert_timestamp to true.
break;
case 'h': /* Used on Solaris. */
case OPTION_SONAME:
- command_line.soname = optarg;
+ if (optarg[0] == '\0' && command_line.soname
+ && command_line.soname[0])
+ einfo (_("%P: SONAME must not be empty string; keeping previous one\n"));
+ else
+ command_line.soname = optarg;
break;
case OPTION_SORT_COMMON:
if (optarg == NULL
}
}
+ if (command_line.soname && command_line.soname[0] == '\0')
+ {
+ einfo (_("%P: SONAME must not be empty string; ignored\n"));
+ command_line.soname = NULL;
+ }
+
while (ingroup)
{
lang_leave_group ();