]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/rpath-absolute.dtest/main.c
2 // BOOT_ARGS: dyld_flags=2
4 // BUILD: $CC foo.c -dynamiclib -o $BUILD_DIR/librpathabs.dylib -install_name @rpath/librpathabs.dylib
5 // BUILD: $CC foo.c -dynamiclib $BUILD_DIR/librpathabs.dylib -o $BUILD_DIR/libfoo.dylib -install_name $RUN_DIR/libfoo.dylib -rpath $RUN_DIR
6 // BUILD: $CC main.c $BUILD_DIR/libfoo.dylib -o $BUILD_DIR/rpath-absolute.exe
8 // RUN: DYLD_AMFI_FAKE=0 ./rpath-absolute.exe
10 // main prog links with libfoo.dylib which uses an absolute LC_RPRATH and @rpath to find librpathabs.dylib
11 // must be able to run with full restrictions
15 #include "test_support.h"
20 int main(int argc
, const char* argv
[], const char* envp
[], const char* apple
[]) {