[llvm-commits] [PATCH] Missing libraries in cmake build?
grosser at fim.uni-passau.de
Mon Apr 12 13:39:30 CDT 2010
I get this error using cmake and BUILD_SHARED_LIBS=1 on a build using
LLVM trunk + one additional pass added by me.
Linking CXX executable ../../bin/llvm-extract
../../lib/libLLVMipo.so: undefined reference to `llvm::createIPSCCPPass()'
collect2: ld returned 1 exit status
gmake: *** [bin/llvm-extract] Error 1
gmake: *** [tools/llvm-extract/CMakeFiles/llvm-extract.dir/all] Error 2
gmake: *** [all] Error 2
For me it seems there are some libraries missing in the CMakeLists.txt
files. The problem does not appear neither with a clean trunk nor with
LLVM + my patches build using the autotools infrastructure.
However the patch solves the build issues on my side and they seem to be
consistent as IPO really uses a function defined in ScalarOpt.
Therefore I believe this is correct and propose this patch for LLVM trunk.
OK to commit?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the llvm-commits