Browse Source

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

git-svn-id: trunk@22862 -
pierre 12 years ago
parent
commit
3915b8e7f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/gdbint/gen-gdblib-inc.sh

+ 1 - 1
packages/gdbint/gen-gdblib-inc.sh

@@ -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"