| From: | Dave Page <dpage(at)postgresql(dot)org> |
|---|---|
| To: | Ted Petrosky <tpetrosky(at)agencysacks(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: libpq.a in a universal binary |
| Date: | 2006-12-13 08:33:33 |
| Message-ID: | 457FBADD.6090908@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Takayuki Tsunakawa | 2006-12-13 09:27:38 | Re: Load distributed checkpoint |
| Previous Message | Gurjeet Singh | 2006-12-13 07:54:22 | A question about ExplainOnePlan() |