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

commit 6a6ad371b22fa6e3aad515dde295aeab50669f3c
Author: crazy <[email protected]>
Date:   Tue Jan 30 17:26:25 2018 +0100

makepkg: error out with mixed stuff

* error out early when hash-style=both is detected .. that isn't going to work

diff --git a/scripts/makepkg b/scripts/makepkg
index 5fb489d..e948700 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -1414,6 +1414,14 @@ fi


if [ "$INCHROOT" == "1" ]; then
+
+       if ! $ECHO $LDFLAGS | grep -q "\-Wl,--hash-style=both" ; then
+               error "You are using -Wl,--hash-style=both"
+               error "LDFLAGS changed to -Wl,--hash-style=gnu"
+               error "Fix your makepkg.conf"
+               exit 1
+       fi
+
if ! $ECHO $LDFLAGS | grep -q "\-Wl,--hash-style=gnu" ; then
warning "Broken LDFLAGS found, -Wl,--hash-style=gnu is missing from 
makepkg.conf!!"
warning "Setting BUILDTYPE=custom , fix your makepkg.conf"
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to