summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-04-05 20:30:30 +0000
committerimp <imp@FreeBSD.org>2003-04-05 20:30:30 +0000
commitb0693a4cbc1561df17854d11e8a1b4b331f8b742 (patch)
treeb6fc0351de0d24cf42e51ee60290331a14961c9c /gnu
parentcb5cc10e3188fdee3c927d3d39c4793ebfc3f045 (diff)
downloadFreeBSD-src-b0693a4cbc1561df17854d11e8a1b4b331f8b742.zip
FreeBSD-src-b0693a4cbc1561df17854d11e8a1b4b331f8b742.tar.gz
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.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile10
-rw-r--r--gnu/usr.bin/binutils/libiberty/Makefile5
2 files changed, 1 insertions, 14 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index a2fc8cb..036cacb 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
diff --git a/gnu/usr.bin/binutils/libiberty/Makefile b/gnu/usr.bin/binutils/libiberty/Makefile
index c002f62..7cce2ca 100644
--- a/gnu/usr.bin/binutils/libiberty/Makefile
+++ b/gnu/usr.bin/binutils/libiberty/Makefile
@@ -10,11 +10,6 @@ SRCS= argv.c choose-temp.c concat.c cp-demangle.c cplus-dem.c \
hex.c floatformat.c hashtab.c lbasename.c make-temp-file.c \
objalloc.c obstack.c safe-ctype.c xatexit.c xexit.c xmalloc.c \
xstrdup.c xstrerror.c
-.if defined(BOOTSTRAPPING) && \
- ( ${BOOTSTRAPPING} < 440000 || \
- ( ${BOOTSTRAPPING} >= 500000 && ${BOOTSTRAPPING} < 500022 ))
-SRCS+= basename.c
-.endif
WARNS= 1
CFLAGS+= -DHAVE_CONFIG_H
INTERNALLIB= true
OpenPOWER on IntegriCloud