[SCM] libgroove/upstream: build: on unix link with -lm

andrewrk-guest at users.alioth.debian.org andrewrk-guest at users.alioth.debian.org
Sat May 31 19:00:01 UTC 2014


The following commit has been merged in the upstream branch:
commit d6f9f23c4f9664dec0c1547fec2ea8b6773fe9ad
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Tue May 13 20:38:29 2014 -0700

    build: on unix link with -lm

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f794f6..7159e25 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -261,6 +261,9 @@ if(LIBAV_IS_BUNDLED)
     ${LIBAV_INSTALL}/lib/libavutil.a
     ${BZIP2_LIBRARIES}
     ${ZLIB_LIBRARIES})
+  if(UNIX)
+    target_link_libraries(groove m)
+  endif(UNIX)
   if(MP3LAME_FOUND)
     target_link_libraries(groove ${MP3LAME_LIBRARY})
   endif()
@@ -272,6 +275,9 @@ else()
     ${LIBAV_AVFILTER_LIBRARIES}
     ${LIBAV_AVFORMAT_LIBRARIES})
   target_link_libraries(groove LINK_PUBLIC ${LIBAV_AVUTIL_LIBRARIES})
+  if(UNIX)
+    target_link_libraries(groove LINK_PUBLIC m)
+  endif(UNIX)
   include_directories(${LIBAV_INCLUDE_DIRS})
 endif()
 target_link_libraries(groove LINK_PUBLIC ${CMAKE_THREAD_LIBS_INIT})

-- 
libgroove packaging



More information about the pkg-multimedia-commits mailing list