From 068e095e95a481834819a588d9081b4c8608d057 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 10 Apr 2009 14:38:33 -0700 Subject: [PATCH] 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 --- configure.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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" -- 2.30.2