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

This commit is contained in:
Mathieu Malaterre 2012-01-11 13:54:11 +00:00
parent f492f0a3d6
commit 8d18c77a7d
1 changed files with 6 additions and 0 deletions

View File

@ -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