summaryrefslogtreecommitdiff
path: root/libraries/openjpeg/openjpeg_link_libm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/openjpeg/openjpeg_link_libm.patch')
-rw-r--r--libraries/openjpeg/openjpeg_link_libm.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/libraries/openjpeg/openjpeg_link_libm.patch b/libraries/openjpeg/openjpeg_link_libm.patch
new file mode 100644
index 0000000000..7214cc9601
--- /dev/null
+++ b/libraries/openjpeg/openjpeg_link_libm.patch
@@ -0,0 +1,14 @@
+Index: CMakeLists.txt
+===================================================================
+--- CMakeLists.txt (revision 728)
++++ CMakeLists.txt (revision 729)
+@@ -30,6 +30,9 @@
+ ENDIF(BUILD_SHARED_LIBS)
+ ENDIF(WIN32)
+ ADD_LIBRARY(${OPENJPEG_LIBRARY_NAME} ${OPENJPEG_SRCS})
++IF(UNIX)
++ TARGET_LINK_LIBRARIES(${OPENJPEG_LIBRARY_NAME} m)
++ENDIF(UNIX)
+ SET_TARGET_PROPERTIES(${OPENJPEG_LIBRARY_NAME} PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
+
+ # Install library