OSDN Git Service

Build glibc test apps static when told to.
authorEric Andersen <andersen@codepoet.org>
Fri, 11 Jan 2002 14:44:57 +0000 (14:44 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 11 Jan 2002 14:44:57 +0000 (14:44 -0000)
Make tiny live up to its name.

test/Rules.mak
test/silly/tiny.c

index dac59ea..8c945af 100644 (file)
@@ -47,6 +47,7 @@ endif
 
 ifneq ($(DODYNAMIC),true)
     LDFLAGS +=--static
+    GLIBC_LDFLAGS +=--static
 endif
 CFLAGS+=--uclibc-use-build-dir
 LDFLAGS+=--uclibc-use-build-dir
index 88cfde2..e54c0ff 100644 (file)
@@ -1,8 +1,6 @@
-#include <stdlib.h>
 #include <unistd.h>
 
 int main(void)
 {
-    write(1,"hello world\n",12);
     _exit(42);
 }