summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-12-26 19:44:40 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-12-26 19:44:40 +0000
commitdf69e1386b32b38de259c086b597fb39cd84d53d (patch)
tree4b3df457477b85d88e7d7e6522f5581f3cf14bd5
parenteb0da9f36d53bc6b4f376c4a975e3c7f09105d6b (diff)
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