Static link with libpq - Mailing list pgsql-interfaces

From Matthew Hagerty
Subject Static link with libpq
Date
Msg-id 3.0.3.32.19980721161630.00697780@wolfepub.com
Whole thread Raw
List pgsql-interfaces
Greetings,

Is it possible to compile a C program that uses libpg as a static program?
I tried the obvious:

# gcc -I../pgsql/include -L../pgsql/lib -static -o test test.c -lpq

This is my error:

ld: No reference to __DYNAMIC

I'm using gcc-2.7.2.1 on FreeBSD-2.2.6-Release and PG-6.3.2

Any insight would be greatly appreciated.  Also, please to cc me, as I am
not yet on the list.

Thanks,
Matthew


pgsql-interfaces by date:

Previous
From: Brett McCormick
Date:
Subject: Re: [INTERFACES] jdbc notification
Next
From: Peter T Mount
Date:
Subject: Re: [INTERFACES] JDBC JAVA interface