[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simple Q: linking against another static lib
From: |
Ralf Wildenhues |
Subject: |
Re: simple Q: linking against another static lib |
Date: |
Thu, 3 Jun 2004 09:24:13 +0200 |
User-agent: |
Mutt/1.4.1i |
* joseph speigle wrote on Thu, Jun 03, 2004 at 03:56:31AM CEST:
>
> hope this arrives well, if it's too easy such is life. However, I
> found a good link for my problem which doesn't work. I want to
> statically compile into my final executable a library (libpqxx.a --
> the c++ postgresql client lib) but can't find the Makefile.am
> "directive" to do so.
>
> The book by Vaugn says:
>
> `_LIBADD'
> Like `_LDADD', but used for static libraries and not programs.
and this means that, if your target is a library, you use LIBADD rather
than LDADD. But you are building a program, not a library, so use
LDADD. Just add /usr/local/pqxx/lib/libpqxx.a to your existing
..._LDADD variable.
Regards,
Ralf