:
/usr/bin/c++ CMakeFiles/main.dir/main.cpp.o -o main -rdynamic libX.so
libY.so libA.so -Wl,-as-needed -Wl,-no-as-needed libB.so -Wl,-rpath,/tmp/build
Best regards,
Sergio
On 14/03/16 15:58, Brad King wrote:
On 03/14/2016 09:33 AM, Sergio Checa wrote:
target_link_li
hive
)
add_executable(main main.cpp)
target_link_libraries(main L)
When linking, only one occurrence of "-Wl,-whole-archive" and one of
"-Wl,-no-whole-archive" are kept. The others are filtered out.
All the best,
Sergio
From 155d039bedfd0cd517866ea131882360700f82a5 Mon Sep 1