]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/weak_import/Makefile
ld64-96.5.tar.gz
[apple/ld64.git] / unit-tests / test-cases / weak_import / Makefile
old mode 100755 (executable)
new mode 100644 (file)
index d1fa1f3..cdacfc9
@@ -34,7 +34,7 @@ all:
        ${CC} ${CCFLAGS} -dynamiclib -single_module foo.c -o libfoo-${ARCH}.dylib 
        ${FAIL_IF_BAD_MACHO} libfoo-${ARCH}.dylib
 
-       ${CC} ${CCFLAGS} -mmacosx-version-min=10.4 main.c -o main-${ARCH} libfoo-${ARCH}.dylib 
+       ${CC} ${CCFLAGS} main.c -o main-${ARCH} libfoo-${ARCH}.dylib 
        nm -m main-${ARCH} | grep _func1 | grep -v weak    >/dev/null
        nm -m main-${ARCH} | grep _func2 | grep    weak    >/dev/null
        nm -m main-${ARCH} | grep _func3 | grep -v weak    >/dev/null 
@@ -43,10 +43,12 @@ all:
        nm -m main-${ARCH} | grep _data2 | grep    weak    >/dev/null
        nm -m main-${ARCH} | grep _data3 | grep -v weak    >/dev/null
        nm -m main-${ARCH} | grep _data4 | grep    weak    >/dev/null
-       otool -rv main-${ARCH} | grep _data6 > /dev/null
+       nm -m main-${ARCH} | grep _data5 | grep -v weak    >/dev/null
+       nm -m main-${ARCH} | grep _data6 | grep    weak    >/dev/null
+       #otool -rv main-${ARCH} | grep _data6 > /dev/null
        ${FAIL_IF_BAD_MACHO} main-${ARCH}
 
-       ${CC} ${CCFLAGS} -mmacosx-version-min=10.4 main.c -dynamiclib -o main-${ARCH}.dylib libfoo-${ARCH}.dylib 
+       ${CC} ${CCFLAGS} main.c -dynamiclib -o main-${ARCH}.dylib libfoo-${ARCH}.dylib 
        nm -m main-${ARCH}.dylib | grep _func1 | grep -v weak    >/dev/null
        nm -m main-${ARCH}.dylib | grep _func2 | grep    weak    >/dev/null
        nm -m main-${ARCH}.dylib | grep _func3 | grep -v weak    >/dev/null 
@@ -55,7 +57,7 @@ all:
        nm -m main-${ARCH}.dylib | grep _data2 | grep    weak    >/dev/null
        nm -m main-${ARCH}.dylib | grep _data3 | grep -v weak    >/dev/null
        nm -m main-${ARCH}.dylib | grep _data4 | grep    weak    >/dev/null
-       otool -rv main-${ARCH}.dylib | grep _data6 > /dev/null
+       #otool -rv main-${ARCH}.dylib | grep _data6 > /dev/null
        ${PASS_IFF_GOOD_MACHO} main-${ARCH}.dylib
        
 clean: