summaryrefslogtreecommitdiff
path: root/libopenjpeg/jpwl
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-01-11 13:54:11 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-01-11 13:54:11 +0000
commit8d18c77a7d62448599e0888a5dced94f84f0f89f (patch)
tree7da17217b315e4b85cb647a4f543e10cb266b90f /libopenjpeg/jpwl
parentf492f0a3d6ab4f766e8677fbfaca62ca4d77ae77 (diff)
Add the fno-common flag to work around an issue with ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
Diffstat (limited to 'libopenjpeg/jpwl')
-rw-r--r--libopenjpeg/jpwl/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/libopenjpeg/jpwl/CMakeLists.txt b/libopenjpeg/jpwl/CMakeLists.txt
index 52411779..6fcfc957 100644
--- a/libopenjpeg/jpwl/CMakeLists.txt
+++ b/libopenjpeg/jpwl/CMakeLists.txt
@@ -3,6 +3,12 @@
ADD_DEFINITIONS(-DUSE_JPWL)
SET(JPWL_SRCS crc.c jpwl.c jpwl_lib.c rs.c)
+IF(APPLE)
+ SET_SOURCE_FILES_PROPERTIES(
+ rs.c
+ PROPERTIES
+ COMPILE_FLAGS -fno-common)
+ENDIF(APPLE)
INCLUDE_DIRECTORIES(
${OPENJPEG_SOURCE_DIR}/libopenjpeg