Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to build with --as-needed #2

Open
juliantaylor opened this issue Jun 29, 2011 · 3 comments
Open

fails to build with --as-needed #2

juliantaylor opened this issue Jun 29, 2011 · 3 comments

Comments

@juliantaylor
Copy link

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

@droe
Copy link

droe commented Jun 29, 2011

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.

@juliantaylor
Copy link
Author

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.

@droe
Copy link

droe commented Jun 30, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants