summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-09-08 18:15:55 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-09-08 18:15:55 +0000
commitd69a419e682c2d39c2355105a7e5e2b90357c8f0 (patch)
treec851cd13031ef83e1ae95783d6dd804d33692a8f /configure
parenteeb6cb143a005641841e718cb8638bc0c684ec25 (diff)
downloadpostgresql-d69a419e682c2d39c2355105a7e5e2b90357c8f0.tar.gz
Remove any -arch switches given in ExtUtils::Embed's ldopts from our
perl_embed_ldflags setting. On OS X it seems that ExtUtils::Embed is trying to force a universal binary to be built, but you need to specify that a lot further upstream if you want Postgres built that way; the only result of including -arch in perl_embed_ldflags is some warnings at the plperl.so link step. Per my complaint and Jan Otto's suggestion.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 252bfee19c..c64f2888d8 100755
--- a/configure
+++ b/configure
@@ -6943,7 +6943,7 @@ $as_echo "$perl_useshrplib" >&6; }
$as_echo_n "checking for flags to link embedded Perl... " >&6; }
pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
-perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
+perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
if test -z "$perl_embed_ldflags" ; then
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }