[Lunar-commits] <moonbase-other> w3c-libwww: fix --as-needed bug

v4hn me at v4hn.de
Wed Apr 3 21:48:27 CEST 2013


commit 4a136b44faa61c6728b531dcd31dd0c50e9ec4e5
Author: v4hn <me at v4hn.de>
Date: Wed, 03 Apr 2013 12:46:50 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/4a136b44faa61c6728b531dcd31dd0c50e9ec4e5

w3c-libwww: fix --as-needed bug
---
  web/w3c-libwww/BUILD | +7/-11    
  1 file changed, 7 insertions(+), 11 deletions(-)

--- a/web/w3c-libwww/BUILD
+++ b/web/w3c-libwww/BUILD
@@ -1,14 +1,10 @@
-(
+OPTS+="--enable-shared --disable-static --with-zlib --with-md5   \
+       --with-dav --with-expat --with-extension --without-mysql"
 
-  OPTS=$OPTS"--enable-shared --disable-static --with-zlib --with-md5   \
-             --with-dav --with-expat --with-extension --without-mysql"
+# --as-needed bug in library order
+sedit "/^LDADD =/ s:\(../src/libwwwfile.la\):\1 ../src/libwwwdir.la ../src/libwwwhtml.la:" Library/Examples/Makefile.in &&
 
-  sedit "s:/lib/mysql/:/lib/:" configure  &&
-  sedit "s/(char\ \*)//g" Library/src/HTMethod.c  &&
+sedit "s:/lib/mysql/:/lib/:" configure  &&
+sedit "s/(char\ \*)//g" Library/src/HTMethod.c  &&
 
-  bad_flags "-Wl,-O1,--as-needed"  &&
-  bad_flags "-Wl,--as-needed"  &&
-
-  default_build
-
-) > $C_FIFO 2>&1
+default_build




More information about the Lunar-commits mailing list