]> git.sesse.net Git - vlc/commitdiff
Fix linkage in --as-needed mode.
authorPavlov Konstantin <thresh@videolan.org>
Sat, 9 Feb 2008 16:18:44 +0000 (16:18 +0000)
committerPavlov Konstantin <thresh@videolan.org>
Sat, 9 Feb 2008 16:18:44 +0000 (16:18 +0000)
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt

index c45b27b61ddcf1d7df4a3893e727bff7decf97c2..3090f473759b6a3153752eaf4bf32fd8a16a9754 100644 (file)
@@ -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" )