Hi, I'm having some problems with producing native executables with llvm-ld. Both TimberLLVMLIB and TimberLLVMRTS is compiled into bitcode files and archived with llvm-ar. Everything works fine when using the flag -disable-opt llvm-ld -Xlinker='-pthread' -Xlinker='-m32' -native -disable-opt -L/home/capitrane/local/timber-llvm//share/timberc-1.0.3/rtsPOSIX ConcMap.bc ParPrimes.bc main.bc -o ParPrimes -lTimberLLVMRTS -lTimberLLVMLIB -v The generated file executes correctly. But when the flag -disable-opt is removed to introduce link-time optimizations the generated program segfaults. llvm-ld -Xlinker='-pthread' -Xlinker='-m32' -native -L/home/capitrane/local/timber-llvm//share/timberc-1.0.3/rtsPOSIX ConcMap.bc ParPrimes.bc main.bc -o ParPrimes -lTimberLLVMRTS -lTimberLLVMLIB -v Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb5fe4b70 (LWP 1662)] __pthread_mutex_lock (mutex=0x4) at pthread_mutex_lock.c:50 50 pthread_mutex_lock.c: No such file or directory. in pthread_mutex_lock.c Any tips on how to move on is appreciated. Regards Mattias