diff options
author | Joshua Judson Rosen <jrosen@harvestai.com> | 2015-12-02 16:46:05 -0500 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2016-02-29 11:41:21 +0100 |
commit | 9e5ef8a7fa6f32dce37a9a340cef793254d2396b (patch) | |
tree | f5ee7f83c763343a4a85c7057575967dcf1659bc /m4/ax_cxx_compile_stdcxx_14.m4 | |
parent | 401d6b8cefcc5bf3c1f6c35d76c589bb6b7387b0 (diff) | |
download | autoconf-archive-9e5ef8a7fa6f32dce37a9a340cef793254d2396b.tar.gz |
AX_CXX_COMPILE_STDCXX: don't break "make CXXFLAGS=..."
Make C++ std-selection macros modify $(CXX), not $(CXXFLAGS).
Using $(CXXFLAGS) prevents users from being able to
rebuild with different CXXFLAGS (e.g.: to try out
different optimisations or to change debug levels)
unless they re-run ./configure with their CFLAGS.
This is more like what the mainline Autoconf macros do
(e.g.: AC_PROG_CC_C99, AC_PROG_CC_STD, etc. modify $(CC),
not $(CCFLAGS)), presmuably for much the same reasons:
if you need to specify a standard to the compiler,
it doesn't really make sense to separate that from
$(CC)/$(CXX) since $(CC)/$(CXX) aren't usable without it.
Diffstat (limited to 'm4/ax_cxx_compile_stdcxx_14.m4')
-rw-r--r-- | m4/ax_cxx_compile_stdcxx_14.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_cxx_compile_stdcxx_14.m4 b/m4/ax_cxx_compile_stdcxx_14.m4 index bd68432..741accf 100644 --- a/m4/ax_cxx_compile_stdcxx_14.m4 +++ b/m4/ax_cxx_compile_stdcxx_14.m4 @@ -9,7 +9,7 @@ # DESCRIPTION # # Check for baseline language coverage in the compiler for the C++14 -# standard; if necessary, add switches to CXXFLAGS to enable support. +# standard; if necessary, add switches to CXX to enable support. # # This macro is a convenience alias for calling the AX_CXX_COMPILE_STDCXX # macro with the version set to C++14. The two optional arguments are @@ -27,7 +27,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 1 +#serial 2 include([ax_cxx_compile_stdcxx.m4]) |