Re: [HACKERS] More Snow Leopard fun: multiarch problems while building plperl

2009-09-08 Thread Jan Otto
Ups, my previous patch was already applied in HEAD. This patch removes the sed-patch and added the check and set of ARCHFLAGS. This seems to be assuming a lot more about the behavior of Apple's Perl hacks than I think we should. The patch as committed is good, because having any -arch flag

Re: [HACKERS] More Snow Leopard fun: multiarch problems while building plperl

2009-09-08 Thread Tom Lane
Jan Otto writes: > Ups, my previous patch was already applied in HEAD. This patch removes > the sed-patch and added the check and set of ARCHFLAGS. This seems to be assuming a lot more about the behavior of Apple's Perl hacks than I think we should. The patch as committed is good, because havi

Re: [HACKERS] More Snow Leopard fun: multiarch problems while building plperl

2009-09-08 Thread Jan Otto
Ups, my previous patch was already applied in HEAD. This patch removes the sed-patch and added the check and set of ARCHFLAGS. diff -c -r1.655 configure *** configure 8 Sep 2009 18:15:55 - 1.655 --- configure 8 Sep 2009 18:30:04 - *** *** 6941,6949 { $as_ec

Re: [HACKERS] More Snow Leopard fun: multiarch problems while building plperl

2009-09-08 Thread Jan Otto
The problem here is that ARCHFLAGS is not set. If it is set correctly the ldopts would be correctly set: $ export ARCHFLAGS="-arch x86_64" $ perl -MExtUtils::Embed -e ldopts -arch x86_64 -L/usr/local/lib -L/System/Library/Perl/5.10.0/darwin- thread-multi-2level/CORE -lperl -ldl -lm -lutil -lc

Re: [HACKERS] More Snow Leopard fun: multiarch problems while building plperl

2009-09-08 Thread Jan Otto
hi tom, perl_embed_ldflags is currently the difference of perl -MExtUtils::Embed -e ldopts minus perl -MConfig -e 'print $Config{ccdlflags}' In that spirit, the answer would be to find something else in ExtUtils or Config that we can remove from ldopts. As far as I can tell, there is nothin

Re: [HACKERS] More Snow Leopard fun: multiarch problems while building plperl

2009-09-08 Thread Tom Lane
Peter Eisentraut writes: > On mån, 2009-09-07 at 23:13 -0400, Tom Lane wrote: >> ... it seems to me that it's a pretty bad idea to have this switch >> collection trying to override the arch(es) that Postgres is actually >> being built for. Does anyone have an opinion about that pro or con? >> An

Re: [HACKERS] More Snow Leopard fun: multiarch problems while building plperl

2009-09-08 Thread Jan Otto
hi tom, $ file /System/Library/Perl/lib/5.10/libperl.dylib /System/Library/Perl/lib/5.10/libperl.dylib: Mach-O universal binary with 3 architectures /System/Library/Perl/lib/5.10/libperl.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 /System/Library/

Re: [HACKERS] More Snow Leopard fun: multiarch problems while building plperl

2009-09-08 Thread Jan Otto
hi tom, Anyway, the long and the short of it is that we are extracting this value for perl_embed_ldflags: perl_embed_ldflags = -arch x86_64 -arch i386 -arch ppc -L/usr/ local/lib -L/System/Library/Perl/5.10.0/darwin-thread-multi-2level/ CORE -lperl -ldl -lm -lutil -lc and it seems to

Re: [HACKERS] More Snow Leopard fun: multiarch problems while building plperl

2009-09-07 Thread Peter Eisentraut
On mån, 2009-09-07 at 23:13 -0400, Tom Lane wrote: > Anyway, the long and the short of it is that we are extracting this > value for perl_embed_ldflags: > > perl_embed_ldflags = -arch x86_64 -arch i386 -arch ppc > -L/usr/local/lib > -L/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CO

[HACKERS] More Snow Leopard fun: multiarch problems while building plperl

2009-09-07 Thread Tom Lane
Building plperl in CVS HEAD, the link step looks like this: gcc -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -bundle -multiply_defined suppress plperl.o spi_internal.o SPI.o -bundle_loader ../../../