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/Perl/lib/5.10/libperl.dylib (for architecture
i386): Mach-O dynamically linked shared library i386
/System/Library/Perl/lib/5.10/libperl.dylib (for architecture
ppc7400): Mach-O dynamically linked shared library ppc
which I found rather surprising because I thought Snow Leopard had
yanked out all support for PPC. However, there it is. But you do
*not*
these universal libraries are needed for older programs to run. you
can run
programs with ppc-architecture on snow leopard. and you probably need it
if you cross-compile for a ppc-machine.
$ file plperl.so
plperl.so: Mach-O universal binary with 3 architectures
plperl.so (for architecture x86_64): Mach-O 64-bit bundle x86_64
plperl.so (for architecture i386): Mach-O bundle i386
plperl.so (for architecture ppc): Mach-O bundle ppc
another way is to extract the needed architectures after the build.
e.g. for x86_64:
ditto --rsrc --arch x86_64 libperl.so libperl.so.tmp && mv
libperl.so.tmp libperl.so
regards, jan otto
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers