summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2001-12-26 19:44:39 +0000
committermiod <miod@openbsd.org>2001-12-26 19:44:39 +0000
commita4b8e985bf50b30e720dd5a6fdaee162f2fed910 (patch)
treec6bae01c0eb5ac3e024213bb1607f5bd06d156d8
parentcosmetic (diff)
downloadwireguard-openbsd-a4b8e985bf50b30e720dd5a6fdaee162f2fed910.tar.xz
wireguard-openbsd-a4b8e985bf50b30e720dd5a6fdaee162f2fed910.zip
When cross compiling, by all means prevent the native <machine/exec.h> to be
picked up. This enables sparc->foo cross-ld to build (don't ask).
-rw-r--r--gnu/usr.bin/ld/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/usr.bin/ld/Makefile b/gnu/usr.bin/ld/Makefile
index ff7c5f09a62..e03c2247670 100644
--- a/gnu/usr.bin/ld/Makefile
+++ b/gnu/usr.bin/ld/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.8 2001/12/24 03:13:54 miod Exp $
+# $OpenBSD: Makefile,v 1.9 2001/12/26 19:44:39 miod Exp $
# $NetBSD: Makefile,v 1.13 1995/04/23 07:58:46 cgd Exp $
TARGET_MACHINE_ARCH?= $(MACHINE_ARCH)
@@ -14,10 +14,13 @@ beforedepend:
mkdir -p cross-include
-rm cross-include/${TARGET_MACHINE_ARCH}
-rm cross-include/${TARGET}
- ln -sf ${.CURDIR}/../../../sys/arch/${TARGET}/include \
- cross-include/${TARGET}
+ -rm cross-include/machine
ln -sf ${.CURDIR}/../../../sys/arch/${TARGET_MACHINE_ARCH}/include \
cross-include/${TARGET_MACHINE_ARCH}
+ ln -sf ${.CURDIR}/../../../sys/arch/${TARGET}/include \
+ cross-include/${TARGET}
+ ln -sf ${.CURDIR}/../../../sys/arch/${TARGET}/include \
+ cross-include/machine
.else
SUBDIR= ldconfig ldd
.endif