summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/Configure
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-08-14 00:12:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-08-14 00:12:23 +0000
commit07fa38957de104303b5d82b672ec8b1442fffba8 (patch)
treed3729adc1a0c0e7f0ae76414285fed2d4d075eb4 /gnu/usr.bin/perl/Configure
parent6230a02147b92e9f7ccc878a8af3016910aea345 (diff)
gcc 3.3.2 needs -fno-delete-null-pointer-checks in addition to
-fno-strict-aliasing. Avoid the need for compiling some bits with -O1 on arm (and others). Problem debugged and OK miod@
Diffstat (limited to 'gnu/usr.bin/perl/Configure')
-rw-r--r--gnu/usr.bin/perl/Configure16
1 files changed, 15 insertions, 1 deletions
diff --git a/gnu/usr.bin/perl/Configure b/gnu/usr.bin/perl/Configure
index 0e7b46366f5..c5284b90f98 100644
--- a/gnu/usr.bin/perl/Configure
+++ b/gnu/usr.bin/perl/Configure
@@ -18,7 +18,7 @@
# you may fetch it yourself from your nearest archive site.)
#
-# $Id: Configure,v 1.13 2004/04/07 21:32:58 millert Exp $
+# $Id: Configure,v 1.14 2004/08/09 18:08:53 millert Exp $
#
# Generated on Wed May 12 13:00:30 METDST 2004 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
@@ -4730,6 +4730,20 @@ default|recommended)
else
echo "Nope, it doesn't, but that's ok." 2>&1
fi
+ echo " "
+ echo "Checking if your compiler accepts -fno-delete-null-pointer-checks" 2>&1
+ echo 'int main(void) { return 0; }' > gcctest.c
+ if $cc -O2 -fno-delete-null-pointer-checks -o gcctest gcctest.c; then
+ echo "Yes, it does." 2>&1
+ case "$ccflags" in
+ *delete-null-pointer-checks*)
+ echo "Leaving current flags $ccflags alone." 2>&1
+ ;;
+ *) dflt="$dflt -fno-delete-null-pointer-checks" ;;
+ esac
+ else
+ echo "Nope, it doesn't, but that's ok." 2>&1
+ fi
;;
esac
# For gcc, adding -pipe speeds up compilations for some, but apparently