Re: Getting to universal binaries for Darwin - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Getting to universal binaries for Darwin
Date
Msg-id 20119.1216485574@sss.pgh.pa.us
Whole thread Raw
In response to Re: Getting to universal binaries for Darwin  (Adriaan van Os <postgres@microbizz.nl>)
List pgsql-hackers
Adriaan van Os <postgres@microbizz.nl> writes:
> Tom Lane wrote:
>> You can get around that by hacking up the generated config files
>> with #ifdef __i386__ and so on to expose the correct values of
>> the hardware-dependent symbols to each build.  Of course you have
>> to know what the correct values are --- if you don't have a sample
>> of each architecture handy to run configure against, it'd be easy
>> to miss some things.  And even then it's pretty tedious.  I am
>> not sure if it is possible or worth the trouble to try to automate
>> this part better.

> It may be less pain to simply config and build for ppc and i386 in separate build directories and 
> then glue the resulting binaries together with lipo 

That might give you working executables, but you still need a
glued-together pg_config.h for installation purposes, if you'd
like people to be able to build extensions against the installation.

In any case, the preceding thread showed exactly how to do it that
way, and it didn't look like "less pain" to me  ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Markus Wanner
Date:
Subject: Re: Postgres-R: primary key patches
Next
From: "Florian G. Pflug"
Date:
Subject: Re: Getting to universal binaries for Darwin