Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gcc6.git;a=commitdiff;h=87827f9b3e99aece8c066edcc82ffed78901c3dc

commit 87827f9b3e99aece8c066edcc82ffed78901c3dc
Author: crazy <cr...@frugalware.org>
Date:   Wed Sep 14 15:41:28 2016 +0200

try to workaround broken LDFLAGS and warn about

diff --git a/source/include/util.sh b/source/include/util.sh
index 0855d98..bccd000 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -99,6 +99,13 @@ Farchs=('i686' 'x86_64')
Fbuildchost="`arch`-frugalware-linux"
Fconfopts=""
_F_make_opts="V=1"
+## Ohh well..
+if ! echo $LDFLAGS | grep -q "\-Wl,-O1" ; then
+       Fmessage "Broken LDFLAGS found, please fix your makepkg.conf!"
+       Femssage "Adding -Wl,-O1 to LDFLAGS"
+       LDFLAGS+=" -Wl,-O1"
+fi
+
unset LANG LC_ALL

###
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to