Re: Makefile support for Mac OS X Fat Binaries?

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

On Tue, 22 Jan 2008, Gregory Stark wrote:

>
> "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>
>> Larry Rosenman <ler(at)lerctr(dot)org> writes:
>>> would the community accept a patch that would allow the making of 4-way fat
>>> binaries on Mac OS X 10.5+? (Obviously for 8.4+).
>>
>> Depends on how big and ugly it is, I think. If you can do it just by
>> hacking CFLAGS and friends, sure; if it's as invasive as the Windows
>> build machinery, definitely not; in between, we'd have to see it.
>
> 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 ?

I'll see what I come up with.

>

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 512-248-2683 E-Mail: ler(at)lerctr(dot)org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2008-01-22 02:33:26 Re: Anyone tried PG with Perl 5.10?
Previous Message Gregory Stark 2008-01-22 00:20:34 Re: Makefile support for Mac OS X Fat Binaries?