mklib: fix static lib building by filtering out -L, -l options
authorWayne E. Robertz <wayne.robertz@gmail.com>
Thu, 10 Nov 2011 22:21:14 +0000 (15:21 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 10 Nov 2011 23:00:46 +0000 (16:00 -0700)
Signed-off-by: Brian Paul <brianp@vmware.com>
bin/mklib

index fd87aad420f2e5d8e35db55ccd7e2247acb34523..70bd1a27a26b65434344071780ceb4f5df6a25c6 100755 (executable)
--- a/bin/mklib
+++ b/bin/mklib
@@ -260,7 +260,7 @@ if [ $STATIC = 1 ]; then
     NEWOBJECTS=""
     for OBJ in $OBJECTS ; do
        case $OBJ in
-           -Wl,*)
+           -Wl,*|-L*|-l*)
                echo "mklib: warning: ignoring $OBJ for static library"
                ;;
            *)