summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2013-10-24 15:28:00 -0400
committerRichard Lowe <richlowe@richlowe.net>2013-11-22 22:26:42 -0500
commit44a646f1952df7a26e3bea7984f7a6c05d45eb0a (patch)
treebc61d2645c8774c087dff19b99039ce114ef3a97
parent7c9adcc5db714f9170fd80006e7c2b613f5b17db (diff)
downloadillumos-joyent-44a646f1952df7a26e3bea7984f7a6c05d45eb0a.tar.gz
4227 ld --library-path is translated to -l-path, not -L
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Dan McDonald <danmcd@nexenta.com> Approved by: Gordon Ross <gwr@nexenta.com>
-rw-r--r--usr/src/cmd/sgs/libld/common/util.c5
-rw-r--r--usr/src/cmd/sgs/packages/common/SUNWonld-README1
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/sgs/libld/common/util.c b/usr/src/cmd/sgs/libld/common/util.c
index 7b59734c1d..d53df1b1e9 100644
--- a/usr/src/cmd/sgs/libld/common/util.c
+++ b/usr/src/cmd/sgs/libld/common/util.c
@@ -331,8 +331,8 @@ str2chr(Lm_list *lml, int ndx, int argc, char **argv, char *arg, int c,
optind += 1;
return (c);
}
-
- } else if (strncmp(arg, opt, optsz) == 0) {
+ } else if ((strcmp(arg, opt) == 0) ||
+ ((arg[optsz] == '=') && strncmp(arg, opt, optsz) == 0)) {
/*
* Otherwise, compare the option name, which may be
* concatenated with the option argument.
@@ -353,7 +353,6 @@ str2chr(Lm_list *lml, int ndx, int argc, char **argv, char *arg, int c,
optind++;
} else {
/*
- * Optarg concatenated to option (no white space).
* GNU option/option argument pairs can be represented
* with a "=" separator. If this is the case, remove
* the separator.
diff --git a/usr/src/cmd/sgs/packages/common/SUNWonld-README b/usr/src/cmd/sgs/packages/common/SUNWonld-README
index 71cb2a1743..71f4a981a5 100644
--- a/usr/src/cmd/sgs/packages/common/SUNWonld-README
+++ b/usr/src/cmd/sgs/packages/common/SUNWonld-README
@@ -1650,3 +1650,4 @@ Bugid Risk Synopsis
3926 multiple extern map file definitions corrupt symbol table entry
3999 libld extended section handling is broken
4003 dldump() can't deal with extended sections
+4227 ld --library-path is translated to -l-path, not -L