]>
Commit | Line | Data |
---|---|---|
ebf6f434 A |
1 | |
2 | int foo() | |
3 | { | |
4 | return 0; | |
5 | } | |
6 | ||
7 | ||
8 | #if __arm__ | |
9 | #define INSTALL_NAME_4_0(sym) \ | |
10 | extern const char install_name_4_0 __asm("$ld$install_name$os4.0$" #sym ); const char install_name_4_0 = 0; | |
11 | ||
12 | INSTALL_NAME_4_0(/usr/lib/libfoo.dylib) | |
13 | #else | |
14 | #define INSTALL_NAME_10_5(sym) \ | |
15 | extern const char install_name_10_5 __asm("$ld$install_name$os10.5$" #sym ); const char install_name_10_5 = 0; | |
16 | ||
17 | INSTALL_NAME_10_5(/usr/lib/libfoo.dylib) | |
18 | #endif |