diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2017-07-26 22:26:08 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2017-07-26 22:26:08 +0000 |
commit | 4b83bd907ad10eb4460bef17a0648170ae5a907c (patch) | |
tree | 45a4727e6d7c83924a9cb60b8801e0ba1bbecce7 /gnu/usr.bin | |
parent | b37d6945be442d615ce941a11f1a8971683059cb (diff) |
get rid of flag clang doesn't grok (include -Werror in Configure, because
clang will not error out on unknown flags)
okay millert@, deraadt@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/perl/Configure | 2 | ||||
-rw-r--r-- | gnu/usr.bin/perl/Makefile.bsd-wrapper1 | 1 |
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 |