summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/perl/Configure2
-rw-r--r--gnu/usr.bin/perl/Makefile.bsd-wrapper11
2 files changed, 1 insertions, 2 deletions
diff --git a/gnu/usr.bin/perl/Configure b/gnu/usr.bin/perl/Configure
index 9d45f96a7a5..27b4fd91750 100644
--- a/gnu/usr.bin/perl/Configure
+++ b/gnu/usr.bin/perl/Configure
@@ -5465,7 +5465,7 @@ default|recommended)
?*) 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
+ if $cc -O2 -Werror -fno-delete-null-pointer-checks -o gcctest gcctest.c; then
echo "Yes, it does." 2>&1
case "$ccflags" in
*delete-null-pointer-checks*)
diff --git a/gnu/usr.bin/perl/Makefile.bsd-wrapper1 b/gnu/usr.bin/perl/Makefile.bsd-wrapper1
index aa03bb99323..61f464f72e9 100644
--- a/gnu/usr.bin/perl/Makefile.bsd-wrapper1
+++ b/gnu/usr.bin/perl/Makefile.bsd-wrapper1
@@ -5,7 +5,6 @@ NOPROFILE=
# Perl builds with -fno-strict-aliasing, we want libperl to do the same
CFLAGS+= -fno-strict-aliasing
-CFLAGS+= -fno-delete-null-pointer-checks
H2PH= /usr/bin/h2ph