diff options
Diffstat (limited to 'gnu')
-rwxr-xr-x | gnu/usr.bin/binutils-2.17/gas/configure | 3 | ||||
-rwxr-xr-x | gnu/usr.bin/binutils-2.17/ld/configure | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/gas/configure b/gnu/usr.bin/binutils-2.17/gas/configure index dca6497031c..74f59f3575a 100755 --- a/gnu/usr.bin/binutils-2.17/gas/configure +++ b/gnu/usr.bin/binutils-2.17/gas/configure @@ -4180,6 +4180,9 @@ using_cgen=no GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" +if cc -v 2>&1 | grep "OpenBSD clang version 6.0.0"; then + GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-null-pointer-arithmetic" +fi # Check whether --enable-werror or --disable-werror was given. if test "${enable_werror+set}" = set; then diff --git a/gnu/usr.bin/binutils-2.17/ld/configure b/gnu/usr.bin/binutils-2.17/ld/configure index 0cd6f5c99d1..82cb42ffb23 100755 --- a/gnu/usr.bin/binutils-2.17/ld/configure +++ b/gnu/usr.bin/binutils-2.17/ld/configure @@ -4229,6 +4229,9 @@ fi; GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" +if cc -v 2>&1 | grep "OpenBSD clang version 6.0.0"; then + GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-null-pointer-arithmetic" +fi # Check whether --enable-werror or --disable-werror was given. if test "${enable_werror+set}" = set; then |