[cfe-dev] Using LTO
niebuhr at niebuhrt.de
Tue Jul 13 01:38:52 PDT 2010
I already asked some questions concerning Linktime-Optimization, but still I can't get it working.
I first asked Chris but since he doesn't use libLTO I send this to the mailing list.
I'm using Xcode 3.2.3 and want to compile my code with clang++ (trunk) and Linktime-Optimization.
My first attempt was "clang++ -O4 -o main *.cpp"
This didn't work because libLTO(trunk) was not in /usr/lib (/Developer/usr/lib).
Linking /usr/local/lib/libLTO.dylib to /usr/local/lib
gives me now the following problem.
My ld is "ld64-97.14", installed with XCode 3.2.3.
The gdb output makes me believe that ld is trying to call a function not present in the current libLTO ( "grep -R getSymbolTableInclusion ." ) .
What am I doing wrong?
More information about the cfe-dev