Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162943692
D37991.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
534 B
Referenced Files
None
Subscribers
None
D37991.diff
View Options
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -217,7 +217,12 @@
.ORDER: buildkernel reinstallkernel
.ORDER: buildkernel reinstallkernel.debug
+# Only sanitize PATH on FreeBSD.
+# PATH may include tools that are required to cross-build
+# on non-FreeBSD systems.
+.if ${.MAKE.OS} == "FreeBSD"
PATH= /sbin:/bin:/usr/sbin:/usr/bin
+.endif
MAKEOBJDIRPREFIX?= /usr/obj
_MAKEOBJDIRPREFIX!= /usr/bin/env -i PATH=${PATH} ${MAKE} MK_AUTO_OBJ=no \
${.MAKEFLAGS:MMAKEOBJDIRPREFIX=*} __MAKE_CONF=${__MAKE_CONF} \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 19, 1:42 PM (19 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35235602
Default Alt Text
D37991.diff (534 B)
Attached To
Mode
D37991: Makefile: Avoid sanitizing PATH on non-FreeBSD systems
Attached
Detach File
Event Timeline
Log In to Comment