Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=bmf.git;a=commitdiff;h=bce4f85a0927a42ab74e84d93cad19ba68857d58
commit bce4f85a0927a42ab74e84d93cad19ba68857d58 Author: crazy <[email protected]> Date: Fri Dec 25 23:19:04 2015 +0100 util.sh: __as_needed_libtool_hack() * fix *all* libtool's , since there can be more not only * in $topsrc dir.. diff --git a/source/include/util.sh b/source/include/util.sh index ed6480e..e8e0a65 100644 --- a/source/include/util.sh +++ b/source/include/util.sh @@ -1023,11 +1023,9 @@ Fbuildsystem_java_ant () { } __as_needed_libtool_hack() { if [ ! "`check_option NOASNEEDED`" ]; then - if [ -e $(pwd)/libtool ]; then - Fmessage "Patching libtool for as-needed...." - ## eg: -shared -> -Wl,--as-needed -shared - sed -i -e 's/ -shared / -Wl,--as-needed\0/g' libtool || Fdie - fi + Fmessage "Patching libtool for as-needed...." + ## eg: -shared -> -Wl,--as-needed -shared + find . -type f -name libtool | xargs sed -i -e 's/ -shared / -Wl,--as-needed\0/g' 2>/dev/null || Fdie fi } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
