From: Pavlov Konstantin Date: Sat, 9 Feb 2008 16:18:44 +0000 (+0000) Subject: Fix linkage in --as-needed mode. X-Git-Tag: 0.9.0-test0~2760 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c3ef13597496b9dcbbfa53c68064a087e66ae4f6;p=vlc Fix linkage in --as-needed mode. --- diff --git a/extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt b/extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt index c45b27b61d..3090f47375 100644 --- a/extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt +++ b/extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt @@ -260,7 +260,7 @@ if(NOT APPLE) set(LINK_FLAGS "-z defs --as-needed") endif(NOT APPLE) -set_target_properties(libvlc libvlc-control PROPERTIES LINK_FLAGS "${LINK_FLAGS} ${CMAKE_THREAD_LIBS_INIT}") +set_target_properties(libvlc libvlc-control PROPERTIES LDFLAGS "${LINK_FLAGS} ${CMAKE_THREAD_LIBS_INIT}") set_target_properties(libvlc libvlc-control vlc PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -I${CMAKE_BINARY_DIR}/src -I${CMAKE_BINARY_DIR}/include" )