* 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