summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-03-05 00:26:09 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-03-05 00:26:09 +0000
commit2ea29e653090373a99e7349318c19686aef78101 (patch)
tree954d27a8b017141f464041e05271aba70cdcbbc4 /gnu/usr.bin
parentda20c4713afb2ad08ff103130d275f709a50e3b1 (diff)
Go back to only specifying --target when building cross.
The OpenBSD triple includes the OpenBSD version. When this recently changed binutils started building prefixed tools when moving to a new OpenBSD version which isn't what we want. ok kettenis@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper b/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper
index 9fad0a2c74a..68c41b1bac2 100644
--- a/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper
+++ b/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.12 2017/01/25 08:56:07 kettenis Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.13 2017/03/05 00:26:08 jsg Exp $
.include <bsd.own.mk>
@@ -47,7 +47,11 @@ INSTALL_MODULES=${INST_SUBDIRS:S/^/install-/g}
INFO_HOST_MODULES=${SUBDIRS:S/^/info-/g}
INSTALL_INFO_HOST_MODULES=${INST_SUBDIRS:S/^/install-info-/g}
+.if defined(CROSSDIR)
CONFIGTARGET=--target=${TARGET_ARCH}-unknown-openbsd${OSREV}
+.else
+CONFIGTARGET=
+.endif
.if ${TARGET_ARCH} == "aarch64"
CONFIGTARGET+=--without-gnu-ld