Przeglądaj źródła

glibc test apps failed to be static when told to be

Eric Andersen 22 lat temu
rodzic
commit
023e222306
1 zmienionych plików z 16 dodań i 1 usunięć
  1. 16 1
      test/silly/Makefile

+ 16 - 1
test/silly/Makefile

@@ -21,7 +21,7 @@ include $(TESTDIR)/Rules.mak
 
 
 
-TARGETS=hello_source hello hello_glibc
+TARGETS=hello_source hello hello_glibc tiny
 
 all: $(TARGETS)
 
@@ -59,6 +59,21 @@ hello_glibc: hello.c Makefile
 	-./$@
 	-@ echo " "
 
+
+tiny: tiny.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
+	-@ echo "-------"
+	-@ echo " "
+	-@ echo "Compiling vs uClibc: "
+	-@ echo " "
+	$(CC) $(CFLAGS) -c $< -o $@.o
+	$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+	$(STRIPTOOL) -x -R .note -R .comment $@
+	-$(LDD) $@
+	ls -l $@
+	-./$@
+	-@ echo " "
+
+
 clean:
 	rm -f *.[oa] *~ core $(TARGETS)