diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2009-04-30 16:52:56 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-04-30 16:52:56 -0600 |
commit | 9cb3cdec76b679f15c591955084bd48e91a32142 (patch) | |
tree | ec580330cc47f52f7ebba5580ab7765098c7a0a7 /bin | |
parent | 60927f97f7b0df9ce352d0c8b4b973e97d53f20a (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-x | bin/mklib | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 # |