From df69e1386b32b38de259c086b597fb39cd84d53d Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 26 Dec 2001 19:44:40 +0000 Subject: When cross compiling, by all means prevent the native to be picked up. This enables sparc->foo cross-ld to build (don't ask). --- gnu/usr.bin/ld/Makefile | 9 ++++++--- 1 file 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 -- cgit v1.2.3