Page MenuHomeFreeBSD

D33452.id100045.diff
No OneTemporary

D33452.id100045.diff

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
# 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,8 @@
/* Public domain */
-int
-main(void)
-{
- return 0;
-}
+/*
+ * Use _start because that's the only required symbol. This way we can link the
+ * program -nostdlib and not need any other binaries built.
+ */
+int _start(void);
+int _start(void) { return 0; }

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 22, 11:41 AM (19 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31975806
Default Alt Text
D33452.id100045.diff (932 B)

Event Timeline