Only consider -l option if -l is at start of argument

git-svn-id: trunk@22862 -
This commit is contained in:
pierre 2012-10-27 21:58:24 +00:00
parent 1ecc2672bb
commit 3915b8e7f9

View File

@ -279,7 +279,7 @@ BEGIN {
print dynamiclib;
print librarypath;
}
if ( list[i] ~ /-l/ ) {
if ( list[i] ~ /^-l/ ) {
systemlib = gensub (/-l([^ ]*)/,"\\1","g",list[i]);
if (forcestatic == 1) {
systemlib="lib" systemlib ".a"