Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=7cc10f12c974b1fe8e5e6fb2ffb4be720bb545ae

commit 7cc10f12c974b1fe8e5e6fb2ffb4be720bb545ae
Author: crazy <[email protected]>
Date:   Fri Oct 9 05:57:51 2015 +0200

makepkg * deprecate 'asneeded' and add --as-needed to be default... * WTF.. 
adding 8k lines with this option.. * use noasneeded if you need an package to 
be build without

diff --git a/scripts/makepkg b/scripts/makepkg
index f769618..f21dbd0 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -32,6 +32,7 @@ PKGDEST=$startdir
USE_COLOR="n"

# Options
+
BUILDSCRIPT="./FrugalBuild"
CLEANUP=0
CLEANCACHE=0
@@ -1344,16 +1345,23 @@ if grep -i -q "^# Compiling Time: [~0-9\.]\+ SBU$" 
$BUILDSCRIPT && \
fi
fi

+
+if [ "`check_option ASNEEDED`" ]; then
+        error "You are using deprecated option 'asneeded'."
+        error "This is now default, please remove and retry."
+       exit 1
+fi
+
if [ "`check_option NOASNEEDED`" ]; then
-       msg "Using --no-as-needed in LDFLAGS"
+       warning "Using --no-as-needed in LDFLAGS ( are you sure ? )"
LDFLAGS+=" -Wl,--no-as-needed"
+       export LDFLAGS
else
-       if [ "`check_option ASNEEDED`" ]; then
-               msg "Using --as-needed in LDFLAGS"
-               LDFLAGS+=" -Wl,--as-needed"
-       fi
+       msg "Using --as-needed in LDFLAGS ( default )"
+       LDFLAGS+=" -Wl,--as-needed"
+       export LDFLAGS
fi
-export LDFLAGS
+

# retrieve sources
msg "Retrieving Sources..."
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to