From: | John DeSoi <desoi(at)pgedit(dot)com> |
---|---|
To: | Matthew Metnetsky <met(at)uberstats(dot)com> |
Cc: | Pgsql-General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Statically linking against libpq |
Date: | 2005-01-17 21:32:14 |
Message-ID: | 412CFBA9-68CF-11D9-8FB2-000A95B03262@pgedit.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Jan 17, 2005, at 2:10 PM, Matthew Metnetsky wrote:
> I'd appreciate any suggestions on getting a statically linked library
> against libpq. I'm currently compiling on a Fedora Core 3 machine with
> gcc-2.95.3 against the postgresql-libs-7.4.6-1.FC3.2 package.
This is what I'm using to create a version of psql on OS X with libpq
statically linked:
gcc -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wendif-labels -fno-strict-aliasing command.o common.o help.o input.o
stringutils.o mainloop.o copy.o startup.o prompt.o variables.o
large_obj.o print.o describe.o psqlscan.o tab-complete.o mbprint.o
../../../src/interfaces/libpq/libpq.a -L../../../src/interfaces/libpq
-L../../../src/port -lpgport -lz -lresolv -ldl -lm -o psql
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-01-17 22:52:46 | Re: Statically linking against libpq |
Previous Message | PFC | 2005-01-17 21:05:24 | Re: ext3 |