summaryrefslogtreecommitdiffstats
path: root/tools/build/mk/Makefile.boot
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/mk/Makefile.boot')
-rw-r--r--tools/build/mk/Makefile.boot14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/build/mk/Makefile.boot b/tools/build/mk/Makefile.boot
new file mode 100644
index 0000000..ba2c5f7
--- /dev/null
+++ b/tools/build/mk/Makefile.boot
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+# 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
+# slow down all new builds for such a simple concept, we do it here.
+.if ( ${BOOTSTRAPPING} < 440001 || \
+ ( ${BOOTSTRAPPING} >= 500000 && ${BOOTSTRAPPING} < 500024 ))
+CFLAGS+= -D__FBSDID=__RCSID
+.endif
+
+CFLAGS+= -I${WORLDTMP}/legacy/usr/include
+DPADD+= ${WORLDTMP}/legacy/usr/lib/libegacy.a
+LDADD+= -legacy
+LDFLAGS+= -L${WORLDTMP}/legacy/usr/lib
OpenPOWER on IntegriCloud