Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-08

anyone have a static libpq library for linking?

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jalal

I have a FPC project using libpq from which I need to remove all dynamic linking. I found the FPC option to accomplish this, but cannot come up with the static libpq library.

libpq (or libpq5) distributions contain libpq.so (.*) but not a libpq.a or libpq.o

My attempts so far to create a static libpq library myself have failed. No surprise given I am a makefile and gcc novice.

Does anyone have a static libpq library they could easily send me?

I need one that will work on 32-bit Debian, and a 64-bit Ubuntu version would be a bonus.

I can use either libpq version 4.x or 5.x

I searched the web extensively before asking here.

Please excuse the subject not directly being Lazarus.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080826/6742c6d2/attachment.html

Reply by email

Aleš Katona
to Jalal

I'm not sure where you can find them but if you get the sources, try compiling with -static or -static-libgcc and you should get some .a in the binary output folder.

Note that just "-static" might end up still depending on libc, with "-static-libgcc" you MIGHT end up with a pure static solution (will be quite big I gather).

Ales

Reply by email

Gustavo Enrique Jimenez
to Jalal: I have a FPC project using libpq from which I need to remove all dynamic linking. I found…
Show quoted text 7 lines
I have a FPC project using libpq from which I need to remove all dynamic linking. I found the FPC option to accomplish this, but cannot come up with the static libpq library. libpq (or libpq5) distributions contain libpq.so (.*) but not a libpq.a or libpq.o

If you are in Debian, try this (as root) :

apt-get install libpq-dev

Gustavo

Show quoted text 21 lines
My attempts so far to create a static libpq library myself have failed. No surprise given I am a makefile and gcc novice. Does anyone have a static libpq library they could easily send me? I need one that will work on 32-bit Debian, and a 64-bit Ubuntu version would be a bonus. I can use either libpq version 4.x or 5.x I searched the web extensively before asking here. Please excuse the subject not directly being Lazarus. Thanks! _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email