Re: Makefile support for Mac OS X Fat Binaries?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Makefile support for Mac OS X Fat Binaries?
Date: 2008-01-22 02:40:08
Message-ID: 23802.1200969608@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Larry Rosenman <ler(at)lerctr(dot)org> writes:
> On Tue, 22 Jan 2008, Gregory Stark wrote:
>> We've been through this once already. You can't do it (cleanly) with just
>> Makefile hackery. The architectures have different endianness and possibly
>> other ABI differences. To handle that cleanly you have to run configure once
>> for each architecture and build each architecture with the appropriate
>> config.h.
>>
> Could we then combine the executables into one 4-way fat binary ?

Maybe you need to be thinking about a script that is "outside" the build
system: run the configure/make/make install process 4 times, then
combine the results. You could use the fact that some file is not the
same in all 4 install trees as the trigger driving a combination
process. (Shades of multilib RPMs ...)

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2008-01-22 02:43:23 find_typedef alternative that works on mainstream systems
Previous Message Andrew Dunstan 2008-01-22 02:33:26 Re: Anyone tried PG with Perl 5.10?