diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-04-07 11:31:34 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-04-07 11:31:34 +0200 |
commit | 7682a1ae44f035446180674ea1dbb3c5b0e7cd8a (patch) | |
tree | 9e201ec02047ae34cf427b3d1722f60c1b6c71fc /src/plugins | |
parent | 1307ab9ffc20f8afbeb9d07f33cf7778203e4e25 (diff) | |
download | weechat-7682a1ae44f035446180674ea1dbb3c5b0e7cd8a.zip |
perl: fix compilation on OS X (bug #30701)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/scripts/perl/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/scripts/perl/CMakeLists.txt b/src/plugins/scripts/perl/CMakeLists.txt index df598b960..276477f89 100644 --- a/src/plugins/scripts/perl/CMakeLists.txt +++ b/src/plugins/scripts/perl/CMakeLists.txt @@ -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 |