Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154353991
D37991.id.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.id.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
Wed, Apr 29, 1:23 AM (2 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32317063
Default Alt Text
D37991.id.diff (534 B)
Attached To
Mode
D37991: Makefile: Avoid sanitizing PATH on non-FreeBSD systems
Attached
Detach File
Event Timeline
Log In to Comment