autotools/gcc linker issue
hello,
I've just finished writing a decently-sized library in c++ to interface with amazon's s3 service. I'm trying to get it all packaged up now using autotools (automake, autoconf, and libtool).
I had to end up depending on a few libraries like libgcrypt. I've got everything working, except that, when I compile my tester program, I'm forced to link against all of the libraries used by my own libs3.
As an example:
libs3 depends on libgcrypt, and is thus compiled with -lgcrypt
To my knowledge, that _should_ be the end of it. However, when I try to compile s3Tester.cpp, the linker complains unless I pass a -lgcrypt there as well.
I'm assuming I've got some configuration problem in autotools, but I have no idea what. Any suggestions?
Thanks!
|