Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=fcdba12108ef98edc72ba5f630add9f2b6cd01ee
commit fcdba12108ef98edc72ba5f630add9f2b6cd01ee Author: Michel Hermier <[email protected]> Date: Thu Nov 22 08:24:40 2012 +0100 scripts/makepkg * Move ASNEEDED flag handling just before the build. diff --git a/scripts/makepkg b/scripts/makepkg index b8dc9ee..efd7b48 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -1642,17 +1642,6 @@ if grep -i -q "^# Compiling Time: [~0-9\.]\+ SBU$" $BUILDSCRIPT && \ fi fi -if [ "`check_option NOASNEEDED`" ]; then - msg "Using --no-as-needed in LDFLAGS" - LDFLAGS+=" -Wl,--no-as-needed" -else - if [ "`check_option ASNEEDED`" ]; then - msg "Using --as-needed in LDFLAGS" - LDFLAGS+=" -Wl,--as-needed" - fi -fi -export LDFLAGS - sources_download if [ "$GENSHA1" = "0" ]; then @@ -1702,6 +1691,17 @@ if [ "$NOCCACHE" = "0" -a ! "`check_option NOCCACHE`" ]; then buildenv_ccache fi +if [ "`check_option NOASNEEDED`" ]; then + msg "Using --no-as-needed in LDFLAGS" + LDFLAGS+=" -Wl,--no-as-needed" +else + if [ "`check_option ASNEEDED`" ]; then + msg "Using --as-needed in LDFLAGS" + LDFLAGS+=" -Wl,--as-needed" + fi +fi +export LDFLAGS + # build msg "Starting build()..." stime=`date +%s` _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
