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

commit d6ab67d4fcc785a7b2ce7a0c36f959f5a27197a5
Author: crazy <[EMAIL PROTECTED]>
Date:   Fri Mar 7 22:54:32 2008 +0100

makepkg: move strict-aliasing hack

while we still need -fno-strict-aliasing
moved the hack from util.sh ( where it never worked )
to here. We can't do that from util.sh because
makepkg.conf is sourced after util.sh so the *FLAGS are lost

diff --git a/scripts/makepkg b/scripts/makepkg
index 5333002..a84c3ab 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -114,6 +114,14 @@ Fextract() {
# makepkg configuration
[ -f /etc/makepkg.conf ] && source /etc/makepkg.conf

+# we need -fno-strict-aliasing for gcc 4.2*++
+_gccver=`type -p gcc >/dev/null && gcc -dumpversion`
+if [ "${_gccver%%.?}" == "4.3" ]; then
+        export CFLAGS="$CFLAGS -fno-strict-aliasing"
+        export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
+fi
+
+
INFAKEROOT=
if [ "$1" = "-F" ]; then
INFAKEROOT=1
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to