sslsniff icon indicating copy to clipboard operation
sslsniff copied to clipboard

fails to build with --as-needed

Open juliantaylor opened this issue 14 years ago • 3 comments

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

juliantaylor avatar Jun 29 '11 17:06 juliantaylor

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.

droe avatar Jun 29 '11 22:06 droe

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.

juliantaylor avatar Jun 29 '11 23:06 juliantaylor

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).

droe avatar Jun 30 '11 11:06 droe