sslsniff
sslsniff copied to clipboard
fails to build with --as-needed
Makefile.am uses sslsniff_LDFLAGS to link with libraries. This leads to a wrong command line orderung and undefined references when compiling with the linker flag --as-needed It needs to be sslsniff_LIBS instead
I believe this may be fixed in my fork (see pull request #1), can you verify that? When cleaning up the autotools glue for the various dependencies, I modified Makefile.am to use sslsniff_LDADD for adding libs and sslsniff_LDFLAGS for the linker flags.
when the issues marked the pull request are fixed it compiles.
Although one still needs an explicit link against libboost_system on debian/ubuntu as boost::system::system_category is added by some header. But this probably be a boost/debian specific bug.
The indirect dependency on libboost_system is lost because of --as-needed, which is default on Ubuntu natty. I added explicit linking against libboost_system in commit bb1e474 (see pull req #1).