Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160172588
D33452.id100090.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.id100090.diff
View Options
Index: tools/build/test-includes/Makefile
===================================================================
--- tools/build/test-includes/Makefile
+++ tools/build/test-includes/Makefile
@@ -18,6 +18,7 @@
INTERNALPROG= This is a compile-only test
MAN=
HDRS!= (cd ${SRCTOP}/sys; ls sys/[^_]*.h net*/[^_]*.h)
+LDFLAGS=-nostdlib -e _start
# Some files have to be clean for extra defines too...
CFLAGS.event.c= -D_WANT_KEVENT32 -D_WANT_FREEBSD11_KEVENT
Index: tools/build/test-includes/test-includes.c
===================================================================
--- tools/build/test-includes/test-includes.c
+++ tools/build/test-includes/test-includes.c
@@ -1,7 +1,10 @@
/* Public domain */
-int
-main(void)
-{
- return 0;
-}
+/*
+ * We use _start because it's the default starting symbol, but just to make sure
+ * we specify -e _start on the command line. Coupled with -stdlib, this means
+ * that we don't have to have the libraries and crt*.o files build when we test
+ * the header.
+ */
+int _start(void);
+int _start(void) { return 0; }
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 22, 9:45 PM (19 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34214364
Default Alt Text
D33452.id100090.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