aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/ld/Makefile
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-04-05 20:30:30 +0000
committerWarner Losh <imp@FreeBSD.org>2003-04-05 20:30:30 +0000
commit30aaff1192acd09c20cd6e8c70c9e8d023d4c818 (patch)
treeb6fc0351de0d24cf42e51ee60290331a14961c9c /gnu/usr.bin/binutils/ld/Makefile
parentca6a2c5aef9d2fdfb6f19fc7d050288f91c7afa2 (diff)
downloadsrc-30aaff1192acd09c20cd6e8c70c9e8d023d4c818.tar.gz
src-30aaff1192acd09c20cd6e8c70c9e8d023d4c818.zip
Migrate to a new way of dealing with building from old revisions of
FreeBSD. This method attempts to centralize all the necessary hacks or work arounds in one of two places in the tree (src/Makefile.inc1 and src/tools/build). We build a small compatibility library (libbuild.a) as well as selectively installing necessary include files. We then include this directory when building host binaries. This removes all the past release compatibilty hacks from various places in the tree. We still build on tip of stable and current. I will work with those that want to support more, although I anticipate it will just work. Many thanks to ru@, obrien@ and jhb@ for providing valuable input at various stage of implementation, as well as for working together to positively effect a change for the better.
Notes
Notes: svn path=/head/; revision=113136
Diffstat (limited to 'gnu/usr.bin/binutils/ld/Makefile')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index a2fc8cb92591..036cacb14a17 100644
--- a/gnu/usr.bin/binutils/ld/Makefile
+++ b/gnu/usr.bin/binutils/ld/Makefile
@@ -10,20 +10,12 @@ 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
-
WARNS= 1
CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd
NOSHARED?= yes
-DPADD= ${RELTOP}/libbfd/libbfd.a
+DPADD+= ${RELTOP}/libbfd/libbfd.a
DPADD+= ${RELTOP}/libiberty/libiberty.a
LDADD= ${DPADD}
CLEANDIRS+= ldscripts