Re: libpq.a in a universal binary

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: libpq.a in a universal binary
Дата
Msg-id 457FBADD.6090908@postgresql.org
обсуждение исходный текст
Ответ на libpq.a in a universal binary  (Ted Petrosky <tpetrosky@agencysacks.com>)
Ответы Re: libpq.a in a universal binary  (Ted Petrosky <tpetrosky@agencysacks.com>)
Список pgsql-hackers
Ted Petrosky wrote:
> I am trying to create the libpq.a as a universal binary (both ppc and 
> intel macs). Does anyone have any information on this process?

I use the following notes to build libpq and the bin/ tools to ship with 
pgAdmin. I know it is possible to build the entire server, as a 
Universal binary, but I could never make it work and haven't had time to 
spend on it. Comments welcome :-)

======
Building the entire server as a Universal binary doesn't seem to work at
present, so, we build the backend as an architecture specific build,
then create libpq and the tools as Universal binaries over the top.

# ./configure --with-openssl --prefix=/usr/local/
# make all; make install

# make distclean
# CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch
i386" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc
-arch i386" ./configure --with-openssl --prefix=/usr/local
# make all

Note - this step will fail, but is required to complete the build of the 
tools.

# cd src/interface/libpq
# make all; make install
# cd ../../bin
# make all; make install
======

Regards, Dave


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Gurjeet Singh"
Дата:
Сообщение: A question about ExplainOnePlan()
Следующее
От: edwinoneel@acm.org
Дата:
Сообщение: libpq.a in a universal binary