1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

perl: fix compilation on OS X (bug #30701)

This commit is contained in:
Sebastien Helleu
2012-04-07 11:31:34 +02:00
parent 1307ab9ffc
commit 7682a1ae44
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -23,6 +23,11 @@ weechat-perl-api.h)
SET_TARGET_PROPERTIES(perl PROPERTIES PREFIX "")
IF(PERL_FOUND)
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# remove "-arch xxx" on Mac OS X
STRING(REGEX REPLACE "-arch ppc|-arch i386|-arch x86_64" "" PERL_CFLAGS "${PERL_CFLAGS}")
STRING(REGEX REPLACE "-arch ppc|-arch i386|-arch x86_64" "" PERL_LFLAGS "${PERL_LFLAGS}")
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
ADD_DEFINITIONS(${PERL_CFLAGS})
INCLUDE_DIRECTORIES(${PERL_INCLUDE_PATH})
# ugly hack to force linking against Dynaloader.a