Make sure legacy stuff comes last. Some tools that use
legacy stuff (binutils) depend on this order. For this to work, provide (and use) specialized versions of bsd.prog.mk and bsd.lib.mk that include the standard versions first, then augment CFLAGS, DPADD, LDADD, and LDFLAGS as necessary, with the legacy stuff. Tested on: 4.0-RELEASE
This commit is contained in:
parent
bab2e18fa0
commit
cb66f4dd73
@ -193,9 +193,8 @@ CROSSENV= MAKEOBJDIRPREFIX=${OBJTREE} \
|
|||||||
# bootstrap-tools stage
|
# bootstrap-tools stage
|
||||||
BMAKEENV= DESTDIR= \
|
BMAKEENV= DESTDIR= \
|
||||||
INSTALL="sh ${.CURDIR}/tools/install.sh" \
|
INSTALL="sh ${.CURDIR}/tools/install.sh" \
|
||||||
__MAKE_CONF=${.CURDIR}/tools/build/Makefile.boot \
|
WORLDTMP=${WORLDTMP} \
|
||||||
OLD_MAKE_CONF=${__MAKE_CONF} \
|
MAKEFLAGS="-m ${.CURDIR}/tools/build/mk ${.MAKEFLAGS}"
|
||||||
WORLDTMP=${WORLDTMP}
|
|
||||||
BMAKE= MAKEOBJDIRPREFIX=${WORLDTMP} \
|
BMAKE= MAKEOBJDIRPREFIX=${WORLDTMP} \
|
||||||
${BMAKEENV} ${MAKE} -f Makefile.inc1 \
|
${BMAKEENV} ${MAKE} -f Makefile.inc1 \
|
||||||
BOOTSTRAPPING=${OSRELDATE} \
|
BOOTSTRAPPING=${OSRELDATE} \
|
||||||
|
@ -3,18 +3,12 @@
|
|||||||
# FreeBSD didn't always have the __FBSDID() macro in <sys/cdefs.h>.
|
# FreeBSD didn't always have the __FBSDID() macro in <sys/cdefs.h>.
|
||||||
# We could do this with a sys/cdefs.h wrapper, but given that this would
|
# We could do this with a sys/cdefs.h wrapper, but given that this would
|
||||||
# slow down all new builds for such a simple concept, we do it here.
|
# slow down all new builds for such a simple concept, we do it here.
|
||||||
.if defined(BOOTSTRAPPING) && \
|
.if ( ${BOOTSTRAPPING} < 440001 || \
|
||||||
( ${BOOTSTRAPPING} < 440001 || \
|
|
||||||
( ${BOOTSTRAPPING} >= 500000 && ${BOOTSTRAPPING} < 500024 ))
|
( ${BOOTSTRAPPING} >= 500000 && ${BOOTSTRAPPING} < 500024 ))
|
||||||
CFLAGS+= -D__FBSDID=__RCSID
|
CFLAGS+= -D__FBSDID=__RCSID
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
CFLAGS+= -I${WORLDTMP}/legacy/usr/include
|
CFLAGS+= -I${WORLDTMP}/legacy/usr/include
|
||||||
DPADD= ${WORLDTMP}/legacy/usr/lib/libegacy.a
|
DPADD+= ${WORLDTMP}/legacy/usr/lib/libegacy.a
|
||||||
LDADD= -legacy
|
LDADD+= -legacy
|
||||||
LDFLAGS= -L${WORLDTMP}/legacy/usr/lib
|
LDFLAGS+= -L${WORLDTMP}/legacy/usr/lib
|
||||||
|
|
||||||
OLD_MAKE_CONF?= /etc/make.conf
|
|
||||||
.if exists(${OLD_MAKE_CONF})
|
|
||||||
.include "${OLD_MAKE_CONF}"
|
|
||||||
.endif
|
|
4
tools/build/mk/bsd.lib.mk
Normal file
4
tools/build/mk/bsd.lib.mk
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
.include "../../../share/mk/bsd.lib.mk"
|
||||||
|
.include "Makefile.boot"
|
4
tools/build/mk/bsd.prog.mk
Normal file
4
tools/build/mk/bsd.prog.mk
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
.include "../../../share/mk/bsd.prog.mk"
|
||||||
|
.include "Makefile.boot"
|
Loading…
Reference in New Issue
Block a user