From e97a4764bb4efd497473925f8645c948290bd743 Mon Sep 17 00:00:00 2001 From: ru Date: Mon, 24 Sep 2001 09:25:05 +0000 Subject: [PATCH] Fixed the buildworld breakage in cross-tools caused by misuse of /usr/src/include headers. This REALLY fixes the 20010919 src/UPDATING entry. With this patch the 4.2-RELEASE box was able to survive the 5.0-CURRENT "make world". Beat over the head with this patch: obrien --- gnu/usr.bin/binutils/ld/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile index 19db30166f3..8e81c8ffd76 100644 --- a/gnu/usr.bin/binutils/ld/Makefile +++ b/gnu/usr.bin/binutils/ld/Makefile @@ -9,9 +9,16 @@ SCRIPTDIR= /usr/libdata/ldscripts SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \ ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \ ldver.c ldwrite.c lexsup.c mri.c + +.if defined(BOOTSTRAPPING) && !exists(/usr/include/elf-hints.h) +SRCS+= elf-hints.h +CLEANFILES+= elf-hints.h +elf-hints.h: + ln -sf ${.CURDIR}/../../../../include/${.TARGET} . +.endif + CFLAGS+= -DSCRIPTDIR=\"${DESTDIR}/usr/libdata\" CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd -CFLAGS+= -I${.CURDIR}/../../../../include CFLAGS+= -DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\" NOSHARED?= yes DPADD= ${RELTOP}/libbfd/libbfd.a -- 2.45.0