summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-09-24 09:25:05 +0000
committerru <ru@FreeBSD.org>2001-09-24 09:25:05 +0000
commite97a4764bb4efd497473925f8645c948290bd743 (patch)
tree3ef0a4c52d37e938632786b5e4ea8875b1ff4af2 /gnu
parentbb01b0fc8830969df18f716abc170a6f5efb9ed3 (diff)
downloadFreeBSD-src-e97a4764bb4efd497473925f8645c948290bd743.zip
FreeBSD-src-e97a4764bb4efd497473925f8645c948290bd743.tar.gz
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
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index 19db301..8e81c8f 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
OpenPOWER on IntegriCloud