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

Check for -lm

parent 6b9d2d1b
......@@ -179,8 +179,6 @@ if(APPLE)
target_link_libraries(libvlc ${CARBON_FRAMEWORK})
endif(APPLE)
target_link_libraries(libvlc ${Dlopen_LIBRARY})
##########################################################
# revision.c
......@@ -245,6 +243,7 @@ if(NOT APPLE)
endif(NOT APPLE)
target_link_libraries(libvlc ${LIBRT} ${LIBICONV} ${Dlopen_LIBRARIES})
target_link_libraries(libvlc ${LIBM})
set_target_properties(libvlc PROPERTIES SOVERSION 1.0.0)
set_target_properties(libvlc libvlc-control PROPERTIES PREFIX "")
......
......@@ -92,6 +92,11 @@ if (HAVE_CLOCK_NANOSLEEP)
set(LIBRT "rt")
endif (HAVE_CLOCK_NANOSLEEP)
check_library_exists(m pow "" HAVE_LIBM)
if (HAVE_LIBM)
set (LIBM "m")
endif (HAVE_LIBM)
###########################################################
# 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