Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153333771
D33452.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
D33452.diff
View Options
diff --git a/Makefile.inc1 b/Makefile.inc1
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1128,6 +1128,7 @@
.if !empty(SUBDIR_OVERRIDE) && make(buildworld)
${_+_}cd ${.CURDIR}; ${WMAKE} MK_INCLUDES=yes SHARED=symlinks includes
.endif
+ ${_+_}cd ${.CURDIR}; ${WMAKE} test-includes
_libraries:
@echo
@echo "--------------------------------------------------------------"
diff --git a/tools/build/test-includes/Makefile b/tools/build/test-includes/Makefile
--- a/tools/build/test-includes/Makefile
+++ b/tools/build/test-includes/Makefile
@@ -13,11 +13,11 @@
# programs to detect FreeBSD has different headers, omitting internal
# headers cuts down on the noise w/o causing problems for the goal.
#
-PROG= test-includes
-SRCS= test-includes.c
-INTERNALPROG= This is a compile-only test
+LIB= test-includes
+INTERNALLIB= This is a compile-only test
MAN=
HDRS!= (cd ${SRCTOP}/sys; ls sys/[^_]*.h net*/[^_]*.h)
+NO_PIC= yes
# Some files have to be clean for extra defines too...
CFLAGS.event.c= -D_WANT_KEVENT32 -D_WANT_FREEBSD11_KEVENT
@@ -33,6 +33,8 @@
.endif
.endfor
+test-includes: lib${LIB}.a .PHONY
+
#
# Target to make the current known bad list. In general, this list should only
# ever shrink and never grow.
@@ -49,4 +51,4 @@
done; \
echo) > ${.CURDIR}/badfiles.inc
-.include <bsd.prog.mk>
+.include <bsd.lib.mk>
diff --git a/tools/build/test-includes/test-includes.c b/tools/build/test-includes/test-includes.c
deleted file mode 100644
--- a/tools/build/test-includes/test-includes.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* Public domain */
-
-int
-main(void)
-{
- return 0;
-}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 1:23 PM (1 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31912763
Default Alt Text
D33452.diff (1 KB)
Attached To
Mode
D33452: test-includes: Build a library instead of a binary
Attached
Detach File
Event Timeline
Log In to Comment