summaryrefslogtreecommitdiffstats
path: root/share/mk/src.sys.mk
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2015-06-19 14:56:24 +0000
committersjg <sjg@FreeBSD.org>2015-06-19 14:56:24 +0000
commit9b22f67e32d19fc107aa5d1d67cb9f0be4c5601c (patch)
tree234c94ae7e69020638bacc910aaeddc6192df571 /share/mk/src.sys.mk
parentc2545944fb5f8cb150c6c2c71db08c548781bda8 (diff)
downloadFreeBSD-src-9b22f67e32d19fc107aa5d1d67cb9f0be4c5601c.zip
FreeBSD-src-9b22f67e32d19fc107aa5d1d67cb9f0be4c5601c.tar.gz
Move include of make.conf back to its old position.
This means moving include of local.sys.mk and src.sys.mk too. Introduce new includes to take the early slot, for the purpose of being able to influence toolchains and the like. Differential Revision: D2860 Reviewed by: imp
Diffstat (limited to 'share/mk/src.sys.mk')
-rw-r--r--share/mk/src.sys.mk15
1 files changed, 2 insertions, 13 deletions
diff --git a/share/mk/src.sys.mk b/share/mk/src.sys.mk
index f8dea28..81ecaf6 100644
--- a/share/mk/src.sys.mk
+++ b/share/mk/src.sys.mk
@@ -5,24 +5,13 @@
# to preserve historical (and useful) behavior. Changes here need to
# be reflected there so SRCCONF isn't included multiple times.
-# make sure this is defined in a consistent manner
-SRCTOP:= ${.PARSEDIR:tA:H:H}
-
# Allow user to configure things that only effect src tree builds.
SRCCONF?= /etc/src.conf
.if (exists(${SRCCONF}) || ${SRCCONF} != "/etc/src.conf") && !target(_srcconf_included_)
.sinclude "${SRCCONF}"
_srcconf_included_: .NOTMAIN
.endif
-# If we were found via .../share/mk we need to replace that
-# with ${.PARSEDIR:tA} so that we can be found by
-# sub-makes launched from objdir.
-.if ${.MAKEFLAGS:M.../share/mk} != ""
-.MAKEFLAGS:= ${.MAKEFLAGS:S,.../share/mk,${.PARSEDIR:tA},}
-.endif
-.if ${MAKESYSPATH:Uno:M*.../*} != ""
-MAKESYSPATH:= ${MAKESYSPATH:S,.../share/mk,${.PARSEDIR:tA},}
-.export MAKESYSPATH
-.endif
+
# tempting, but bsd.compiler.mk causes problems this early
+# probably need to remove dependence on bsd.own.mk
#.include "src.opts.mk"
OpenPOWER on IntegriCloud