aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-09-24 09:25:05 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-09-24 09:25:05 +0000
commit946b7fa17e444cf0508c8e46736dabf454f01f60 (patch)
tree3ef0a4c52d37e938632786b5e4ea8875b1ff4af2
parentbc58a19f1d363d2bb76ef8da5795f5e67ef7f8f3 (diff)
Notes
-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 19db30166f360..8e81c8ffd7603 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