Commit d93f3dd1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Add missing libs. Not sure if this is the right way to do it though

parent fe2b5120
...@@ -134,7 +134,8 @@ endif(SYS_DARWIN) ...@@ -134,7 +134,8 @@ endif(SYS_DARWIN)
add_library(libvlc SHARED ${SOURCES_libvlc}) add_library(libvlc SHARED ${SOURCES_libvlc})
install_targets(/lib libvlc) install_targets(/lib libvlc)
set_target_properties(libvlc PROPERTIES LINK_FLAGS "${LIBICONV}") set_target_properties(libvlc PROPERTIES LINK_FLAGS
"-z defs --as-needed -lm ${LIBRT} ${LIBICONV} ${CMAKE_THREAD_LIBS_INIT}")
set_target_properties(libvlc PROPERTIES SOVERSION 1.0.0) set_target_properties(libvlc PROPERTIES SOVERSION 1.0.0)
# libvlc-control # libvlc-control
...@@ -241,5 +242,6 @@ set(about) ...@@ -241,5 +242,6 @@ set(about)
# SET_TARGET_PROPERTIES # SET_TARGET_PROPERTIES
set_target_properties(libvlc libvlc-control PROPERTIES PREFIX "") set_target_properties(libvlc libvlc-control PROPERTIES PREFIX "")
set_target_properties(libvlc-control PROPERTIES LINK_FLAGS "-z defs --as-needed")
set_target_properties(libvlc libvlc-control vlc PROPERTIES COMPILE_FLAGS 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" ) "-Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes" )
...@@ -80,13 +80,16 @@ set(LIBICONV "") ...@@ -80,13 +80,16 @@ set(LIBICONV "")
vlc_check_functions_exist(iconv) vlc_check_functions_exist(iconv)
if(NOT HAVE_ICONV) if(NOT HAVE_ICONV)
set(LIBICONV "iconv") set(LIBICONV "-liconv")
check_library_exists(iconv iconv "" HAVE_ICONV) check_library_exists(iconv iconv "" HAVE_ICONV)
endif(NOT HAVE_ICONV) endif(NOT HAVE_ICONV)
# FIXME: this will break on *BSD: # FIXME: this will break on *BSD:
set( ICONV_CONST "" ) set( ICONV_CONST "" )
check_library_exists(rt clock_nanosleep "" HAVE_CLOCK_NANOSLEEP) check_library_exists(rt clock_nanosleep "" HAVE_CLOCK_NANOSLEEP)
if (HAVE_CLOCK_NANOSLEEP)
set(LIBRT "-lrt")
endif (HAVE_CLOCK_NANOSLEEP)
########################################################### ###########################################################
# Other check # Other check
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment