[llvm-commits] [PATCH] Missing libraries in cmake build?
Tobias Grosser
grosser at fim.uni-passau.de
Mon Apr 12 11:39:30 PDT 2010
Hi,
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[2]: *** [bin/llvm-extract] Error 1
gmake[1]: *** [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?
Thanks
Tobi
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: llvm_Add-missing-libraries-to-cmake.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100412/6281e0a8/attachment.ksh>
More information about the llvm-commits
mailing list