]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/lazy-dylib/Makefile
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / lazy-dylib / Makefile
index e3d0d6a3e2cbb2294c7ae0444f15b5f2150bd441..4f1b14dec3a9b04822036a352b87dfdcb139234c 100644 (file)
@@ -1,5 +1,5 @@
 ##
 ##
-# Copyright (c) 2008 Apple Inc. All rights reserved.
+# Copyright (c) 2008-2010 Apple Inc. All rights reserved.
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
@@ -35,10 +35,10 @@ run: all
 all:
        ${CC} ${CCFLAGS} foo.c -dynamiclib -o libfoo.dylib
        ${CC} ${CCFLAGS} main.c -Wl,-lazy_library,libfoo.dylib -o main
 all:
        ${CC} ${CCFLAGS} foo.c -dynamiclib -o libfoo.dylib
        ${CC} ${CCFLAGS} main.c -Wl,-lazy_library,libfoo.dylib -o main
+       ${CC} ${CCFLAGS} main.c -lazy-lfoo -L. -o main
        ${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} bad.c -Wl,-lazy_library,libfoo.dylib -o bad  2> fail.log
        ${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} bad2.c -Wl,-lazy_library,libfoo.dylib -o bad2  2> fail.log
        
        ${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} bad.c -Wl,-lazy_library,libfoo.dylib -o bad  2> fail.log
        ${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} bad2.c -Wl,-lazy_library,libfoo.dylib -o bad2  2> fail.log
        
-       
        ${PASS_IFF_GOOD_MACHO} main
 
 clean:
        ${PASS_IFF_GOOD_MACHO} main
 
 clean: