]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/static-executable/Makefile
ld64-95.2.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / static-executable / Makefile
index 8e14133fd6132f4e22dd81ec7a48411f74be9e5a..2d71eff41bef583ecf1e5f322c1df2bf9ec6c068 100644 (file)
@@ -24,20 +24,12 @@ TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
 #
-# The point of this test is a sanity check that ld
-# can link a static executable (requires non-public archives)
+# Test that ld can link a static executable
 #
 
-run:
-       @if [ ${ARCH} = ppc ] || [ ${ARCH} = i386 ] ; then \
-       $(MAKE) all ; \
-       else \
-       $(PASS_IFF) /usr/bin/true ; \
-       fi
-
 all:
-       ${CC} ${CCFLAGS} test.c -static -o test-${ARCH} -L/usr/local/lib/system -lc_static -lm_static -dead_strip 2>/dev/null
-       ${PASS_IFF_GOOD_MACHO} test-${ARCH}
+       ${CC} ${CCFLAGS} test.c -static -o test -e _entry -nostdlib -Wl,-new_linker
+       ${PASS_IFF_GOOD_MACHO} test
 
 clean:
-       rm -rf test-*
+       rm -rf test