[llvm-commits] [patch] fix linking of llvm-mc with cmake
Xerxes RĂ„nby
xerxes at zafena.se
Wed Jun 24 02:49:58 PDT 2009
The problem (building llvm r74068 with cmake):
Scanning dependencies of target llvm-mc
[ 96%] Building CXX object
tools/llvm-mc/CMakeFiles/llvm-mc.dir/llvm-mc.cpp.o
[ 96%] Building CXX object
tools/llvm-mc/CMakeFiles/llvm-mc.dir/AsmLexer.cpp.o
[ 97%] Building CXX object
tools/llvm-mc/CMakeFiles/llvm-mc.dir/AsmParser.cpp.o
[ 97%] Building CXX object
tools/llvm-mc/CMakeFiles/llvm-mc.dir/MC-X86Specific.cpp.o
Linking CXX executable ../../bin/llvm-mc
CMakeFiles/llvm-mc.dir/llvm-mc.cpp.o: In function `AssembleInput(char
const*)':
llvm-mc.cpp:(.text+0x51c): undefined reference to
`llvm::createAsmStreamer(llvm::MCContext&, llvm::raw_ostream&)'
collect2: ld returnerade avslutningsstatus 1
make[2]: *** [bin/llvm-mc] Fel 1
make[1]: *** [tools/llvm-mc/CMakeFiles/llvm-mc.dir/all] Fel 2
make: *** [all] Fel 2
The solution:
The attached patch makes sure that createAsmStreamer are compiled into
libLLVMMC.
Cheers
Xerxes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LLVMMC_cmake.patch
Type: text/x-patch
Size: 343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090624/8a9714bf/attachment.bin>
More information about the llvm-commits
mailing list