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

Fix gcc 5.4 build #65

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mlamarre
Copy link

This PR adds the CXX switch -std=c++11 in config-linux-gcc.py.

I don't know why I'm the first to hit this, but If I don't specify -std=c++11, I get the same build errors as in this issue:
#7

I'm building from a minimal Ubuntu 16.04 docker file.
I noticed the debug variant already had the c++11 switch at the end, I moved it to the front.
There's an extra -fPIC switch in CXXFLAGS in the debug variant.
Removed it and it's still added to every g++ calls so it's unnecessary.

Fix an unused variable warning
Didn't notice the debug config already had it
@wjakob
Copy link
Member

wjakob commented Feb 21, 2018

Seems reasonable -- can you leave the -fPIC flag? I want to ensure that it really gets used for every target (not just shared libraries).

@mlamarre
Copy link
Author

I put back fPIC and also add it to the release file.

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

Successfully merging this pull request may close these issues.

2 participants