From: Tormod Volden <debian.tor...@gmail.com>

ar gets confused when the --start-group et al options introduced in
e.g. bfd5916eafb9a97ad10f1d4a8738e7dcb02e04f4 appear inside the object list

Signed-off-by: Tormod Volden <debian.tor...@gmail.com>
---
 bin/mklib |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/bin/mklib b/bin/mklib
index a3e826a..b9b9a1a 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -175,6 +175,18 @@ if [ ${ARCH} = "auto" ] ; then
     ARCH=`uname`
 fi
 
+if [ $STATIC = 1 ]; then
+       # filter out linker options inside object list
+       NEWOBJECTS=""
+       for OBJ in $OBJECTS ; do
+               if [ `expr match $OBJ '--.*'` -gt 0 ]; then
+                       echo "mklib: warning: ignoring $OBJ for static library"
+               else
+                       NEWOBJECTS="$NEWOBJECTS $OBJ"
+               fi
+       done
+       OBJECTS=$NEWOBJECTS
+fi
 
 #
 # Error checking
-- 
1.6.0.4


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to