From: Doug MacEachern Date: Fri, 10 Apr 2009 21:38:33 +0000 (-0700) Subject: Disable disable multi -arch flags to perl.c on OSX Compilation of perl.c fails with: X-Git-Tag: collectd-4.5.4~24 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=068e095e95a481834819a588d9081b4c8608d057;p=collectd.git Disable disable multi -arch flags to perl.c on OSX Compilation of perl.c fails with: gcc ... -Wall -Werror -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN ... -MT perl_la-perl.lo -MD -MP -MF ... ... gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags See Config_heavy.pl: $archflags = exists($ENV{ARCHFLAGS}) ? $ENV{ARCHFLAGS} : '-arch i386 -arch ppc'; Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- diff --git a/configure.in b/configure.in index b2c275af..954d967c 100644 --- a/configure.in +++ b/configure.in @@ -1683,8 +1683,9 @@ if test "x$with_libperl" = "xyes" \ then SAVE_CFLAGS=$CFLAGS SAVE_LDFLAGS=$LDFLAGS - PERL_CFLAGS=`$perl_interpreter -MExtUtils::Embed -e ccopts` - PERL_LDFLAGS=`$perl_interpreter -MExtUtils::Embed -e ldopts` +dnl ARCHFLAGS="" -> disable multi -arch on OSX (see Config_heavy.pl:fetch_string) + PERL_CFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ccopts` + PERL_LDFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ldopts` CFLAGS="$CFLAGS $PERL_CFLAGS" LDFLAGS="$LDFLAGS $PERL_LDFLAGS"