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 trivial but serious bug in configure.ac #89

Merged

Conversation

jeffhammond
Copy link
Contributor

CPPFLAGS is for C preprocessing, not C++ compilation. setting
-std=c++11 here causes this flag to be used with the C compiler.

more importantly, it causes CPP=/lib/cpp to be inferred, at least on
Mac, and this does not work at all.

CPPFLAGS is for C preprocessing, not C++ compilation.  setting
-std=c++11 here causes this flag to be used with the C compiler.

more importantly, it causes CPP=/lib/cpp to be inferred, at least on
Mac, and this does not work at all.
jeffhammond added a commit to jeffhammond/bagel that referenced this pull request Jan 8, 2017
@shiozaki
Copy link
Member

shiozaki commented Jan 9, 2017

I am not sure why this is there. The previous line must be setting CXXFLAGS (see m4/ax_cxx_compile_stdcxx_11.m4), so best to remove this line instead.

@jeffhammond
Copy link
Contributor Author

I haven't tested it, but that sounds better, since it will allow the C++11 macro to set the appropriate C++11 flag, not just the one that works for GCC, Clang and Intel.

@jeffhammond
Copy link
Contributor Author

I implemented your suggested fix and merged with master.

@shiozaki shiozaki merged commit 5925b27 into qsimulate-open:master Jan 9, 2017
@shiozaki
Copy link
Member

shiozaki commented Jan 9, 2017

Thanks much!

@jeffhammond jeffhammond deleted the fix-cppflags-in-configure branch January 9, 2017 23:09
shiozaki added a commit that referenced this pull request Dec 27, 2018
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