summaryrefslogtreecommitdiffstats
path: root/share/mk/sys.mk
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-05-12 22:53:52 +0000
committerbde <bde@FreeBSD.org>2004-05-12 22:53:52 +0000
commit32fb306df4c7854deb970610cbf8099308069952 (patch)
tree2f82bff683339089a02b1f6adcae8b1fb064dd37 /share/mk/sys.mk
parent385a8b9165f37d2d33bf0f6be98947e82e9b0ffa (diff)
downloadFreeBSD-src-32fb306df4c7854deb970610cbf8099308069952.zip
FreeBSD-src-32fb306df4c7854deb970610cbf8099308069952.tar.gz
Moved FreeBSD build pollution (/etc/make.conf) and zombie aout support
(OBJFORMAT) into a non-POSIX section.
Diffstat (limited to 'share/mk/sys.mk')
-rw-r--r--share/mk/sys.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index 7dcd90e..51ec2aa 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -109,6 +109,7 @@ YFLAGS ?= -d
MACHINE_ARCH ?= i386
.if defined(%POSIX)
+
# Posix 1003.2 mandated rules
#
# Quoted directly from the Posix 1003.2 draft, only the macros
@@ -252,15 +253,16 @@ MACHINE_ARCH ?= i386
${CC} ${CFLAGS} ${LDFLAGS} ${.PREFIX}.tmp.c ${LDLIBS} -ll -o ${.TARGET}
rm -f ${.PREFIX}.tmp.c
-.endif
-
+# FreeBSD build pollution. Hide it in the non-POSIX part of the ifdef.
__MAKE_CONF?=/etc/make.conf
.if exists(${__MAKE_CONF})
.include "${__MAKE_CONF}"
.endif
-.include <bsd.cpu.mk>
-
# Default executable format
# XXX hint for bsd.port.mk
OBJFORMAT?= elf
+
+.endif
+
+.include <bsd.cpu.mk>
OpenPOWER on IntegriCloud