Skip to content

Fix gcc 5.4 build - #65

Open
mlamarre wants to merge 4 commits into
mitsuba-renderer:masterfrom
mlamarre:fix_gcc_5.4_build
Open

mlamarre wants to merge 4 commits into
mitsuba-renderer:masterfrom
mlamarre:fix_gcc_5.4_build

Conversation

@mlamarre

Copy link
Copy Markdown

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

wjakob commented Feb 21, 2018

Copy link
Copy Markdown
Member

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
Copy Markdown
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