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!
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to