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

View File

@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.8-dev, 2012-04-05
v0.3.8-dev, 2012-04-07
Version 0.3.8 (under dev!)
@ -48,6 +48,7 @@ Version 0.3.8 (under dev!)
* irc: add search for lower case nicks in option irc.look.nick_color_force
* logger: add colors for backlog lines and end of backlog, new options:
logger.color.backlog_line and logger.color.backlog_end (task #11966)
* perl: fix compilation on OS X (bug #30701)
* perl: fix crash on quit on OS X
* relay: redirect some irc messages from clients to hide output (messages: mode,
ison, list, names, topic, who, whois, whowas, time, userhost) (bug #33516)

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