From: | Dave Page <dpage(at)vale-housing(dot)co(dot)uk> |
---|---|
To: | "Florian G(dot) Pflug" <fgp(at)phlo(dot)org> |
Cc: | Chris Campbell <chris(at)bignerdranch(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: Build fails on OSX using wx 2.7.0 |
Date: | 2006-09-01 13:09:04 |
Message-ID: | C11DEF80.12FB8%dpage@vale-housing.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
On 1/9/06 02:49, "Florian G. Pflug" <fgp(at)phlo(dot)org> 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.
From | Date | Subject | |
---|---|---|---|
Next Message | svn | 2006-09-01 14:13:12 | SVN Commit by dpage: r5317 - trunk/pgadmin3 |
Previous Message | Dave Page | 2006-09-01 12:59:03 | Re: Possible Bug in "View data for selected |