summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2009-04-30 16:52:56 -0600
committerBrian Paul <brianp@vmware.com>2009-04-30 16:52:56 -0600
commit9cb3cdec76b679f15c591955084bd48e91a32142 (patch)
treeec580330cc47f52f7ebba5580ab7765098c7a0a7 /bin
parent60927f97f7b0df9ce352d0c8b4b973e97d53f20a (diff)
mesa: Prepend "-Wl," to linking options
Let mklib ignore -Wl options inside the object list when building static libraries
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mklib17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/mklib b/bin/mklib
index a3e826abac..db3bc8325f 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -176,6 +176,23 @@ if [ ${ARCH} = "auto" ] ; then
fi
+if [ $STATIC = 1 ]; then
+ # filter out linker options inside object list
+ NEWOBJECTS=""
+ for OBJ in $OBJECTS ; do
+ case $OBJ in
+ -Wl,*)
+ echo "mklib: warning: ignoring $OBJ for static library"
+ ;;
+ *)
+ NEWOBJECTS="$NEWOBJECTS $OBJ"
+ ;;
+ esac
+ done
+ OBJECTS=$NEWOBJECTS
+fi
+
+
#
# Error checking
#