On 1/9/06 02:49, "Florian G. Pflug" <[EMAIL PROTECTED]> wrote:
> Florian G. Pflug wrote:
>> Dave Page wrote:
>>>
>>
>> I just played around a bit on my laptop running 10.4, and was able to
>> compile a universal version of libpq, pg_dum and pg_config.
>> What I did was:
>>
>> 1) export CFLAGS="-arch i386 -arch ppc -isysroot
>> /Developer/SDKs/MacOSX10.4u.sdk/"
>> 2) export LDFLAGS="-arch i386 -arch ppc -isysroot
>> /Developer/SDKs/MacOSX10.4u.sdk/"
>> 3) ./configure
>> 4) cd src/interfaces/libpq; make
>> 5) cd src/backend; make ../../src/include/parser/parse.h
>> 6) src/bin/pg_config; make
>> 7) src/bin/pg_dump; make
>>
>> The only problem I can see is that ld isn't able to generate universal
>> binaries - it
>> can read them, but always strips all but one arch when generating output...
>> The apple gcc, however supports multiple archs just fine, and even knows
>> that it
>> has to call ld repeatedly, and then merge the resuting files...
>> So, to build a complete postgres distribution, I believe one would have
>> to somehow tell
>> configure to use gcc instead ld (if it doesn't already do that).
>>
>> But for building pgadmin3, the parts I built above are sufficient - in
>> fact, those
>> are exactly the parts of postgres that my buildaemon-postgres-update
>> script builds ;-)
>> (Don't ask me why step (5) is necessary... It was quite a long time ago
>> that I wrote
>> this script... ;-) ).
Yes, that sounds like roughly the procedure I working toward in between
other tasks.
> Clicked send a bit too fast - what I forgot to mention was that I'm use XCode
> 2.4 on my laptop
Oh, didn't know it was out. I'll have to upgrade...
Cheers, Dave.
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq