summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2018-04-06 14:51:09 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2018-04-06 14:51:09 +0000
commit001382570929dd015a4a217b6a5906c8425651d1 (patch)
treeca3b901ec1a3b57e810bc4c9546782bd6c40d810 /gnu/usr.bin
parent8f2cba84683e361bfc58bd6cb57e4ee6e55e74b9 (diff)
Patch binutils 2.17 so that it passes option -Wno-null-pointer-arithmetic
when compiling with LLVM 6.0.0. This is a good enough temporary fix. "where's the kaboom?" deraadt@
Diffstat (limited to 'gnu/usr.bin')
-rwxr-xr-xgnu/usr.bin/binutils-2.17/gas/configure3
-rwxr-xr-xgnu/usr.bin/binutils-2.17/ld/configure3
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