Re: Getting to universal binaries for Darwin

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Getting to universal binaries for Darwin
Дата
Msg-id 20119.1216485574@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Getting to universal binaries for Darwin  (Adriaan van Os <postgres@microbizz.nl>)
Список 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 по дате отправления:

Предыдущее
От: Markus Wanner
Дата:
Сообщение: Re: Postgres-R: primary key patches
Следующее
От: "Florian G. Pflug"
Дата:
Сообщение: Re: Getting to universal binaries for Darwin