[CMake] Problem with CMAKE_C_LINK_EXECUTABLE and LINK_LIBRARIES
Alex Caudill
alex.caudill at gmail.com
Wed Oct 10 23:26:53 EDT 2012
Hi,
I've set CMAKE_C_LINK EXECUTABLE like so:
set(CMAKE_C_LINK_EXECUTABLE "/usr/bin/ld -nostdlib -dynamic-linker
/lib/ld-musl-i386.so.1 <CMAKE_C_LINK_FLAGS> <LINK_FLAGS>
${CMAKE_BINARY_DIR}/lib/crt1.o <OBJECTS>
${CMAKE_BINARY_DIR}/lib/crtn.o -o <TARGET> <LINK_LIBRARIES>")
I did this because I'm building against a new C library. The problem
is that LINK_LIBRARIES is populated by a -Wl,-rpath stanza that breaks
things. How can I work around this?
Thanks!
More information about the CMake
mailing list