Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136424965
D16186.id45034.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16186.id45034.diff
View Options
Index: lib/libnv/Makefile
===================================================================
--- lib/libnv/Makefile
+++ lib/libnv/Makefile
@@ -9,7 +9,10 @@
SHLIB_MAJOR= 0
.PATH: ${SRCTOP}/sys/contrib/libnv ${SRCTOP}/sys/sys
-CFLAGS+=-I${SRCTOP}/sys -I${.CURDIR}
+.ifndef BOOTSTRAPPING
+CFLAGS+=-I${SRCTOP}/sys
+.endif
+CFLAGS+=-I${.CURDIR}
SRCS= cnvlist.c
SRCS+= dnvlist.c
Index: tools/build/mk/Makefile.boot
===================================================================
--- tools/build/mk/Makefile.boot
+++ tools/build/mk/Makefile.boot
@@ -7,3 +7,15 @@
# we do not want to capture dependencies referring to the above
UPDATE_DEPENDFILE= no
+
+.if !empty(CFLAGS:M*${SRCTOP}/sys*)
+.error Do not include $${SRCTOP}/sys when building bootstrap tools. \
+ Copy the header to ${WORLDTMP}/legacy in tools/build/Makefile instead. \
+ Error was caused by Makefile in ${.PARSEDIR}
+.endif
+
+.if !empty(CFLAGS:M*${SRCTOP}/include*)
+.error Do not include $${SRCTOP}/include when building bootstrap tools. \
+ Copy the header to ${WORLDTMP}/legacy in tools/build/Makefile instead. \
+ Error was caused by Makefile in ${.PARSEDIR}
+.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 18, 6:01 PM (4 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25532106
Default Alt Text
D16186.id45034.diff (1 KB)
Attached To
Mode
D16186: Avoid depending on system headers from the source tree during bootstrap
Attached
Detach File
Event Timeline
Log In to Comment