Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151771957
D4383.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
977 B
Referenced Files
None
Subscribers
None
D4383.id.diff
View Options
Index: share/mk/bsd.opts.mk
===================================================================
--- share/mk/bsd.opts.mk
+++ share/mk/bsd.opts.mk
@@ -104,6 +104,8 @@
MK_STALE_STAGED= no
.endif
+.include <bsd.cpu.mk>
+
.endif # !_WITHOUT_SRCCONF
.endif
Index: share/mk/sys.mk
===================================================================
--- share/mk/sys.mk
+++ share/mk/sys.mk
@@ -406,6 +406,15 @@
path=${__MAKE_SHELL}
.endif
+# Hack for ports compatibility. Historically, ports makefiles have
+# assumed hey can examine MACHINE_CPU without including anything
+# because this was automatically included in sys.mk. For /usr/src,
+# this file has moved to being included from bsd.opts.mk. Until all
+# the ports files are modernized, and a reasonable transitition
+# period has passed, include it while we're in a ports tree here
+# to preserve historic behavior.
+.if exists(${.CURDIR}/../../Mk/bsd.port.mk)
.include <bsd.cpu.mk>
+.endif
.endif # ! Posix
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 11, 1:47 PM (2 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31294144
Default Alt Text
D4383.id.diff (977 B)
Attached To
Mode
D4383: Move the inclusion of bsd.cpu.mk from sys.mk to bsd.opts.mk. However, for historical behavior that ports depends on, include it if we're inside the ports tree.
Attached
Detach File
Event Timeline
Log In to Comment