[patch #8818] AX_CXX_COMPILE_STDCXX: don't break "make CXXFLAGS=..."

Joshua Judson Rosen <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
URL:
  <http://savannah.gnu.org/patch/?8818>

                 Summary: AX_CXX_COMPILE_STDCXX: don't break "make
CXXFLAGS=..."
                 Project: GNU Autoconf Archive
            Submitted by: rozzin
            Submitted on: Wed 02 Dec 2015 09:54:10 PM GMT
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 02 Dec 2015 09:54:10 PM GMT  Name:
0001-AX_CXX_COMPILE_STDCXX-don-t-break-make-CXXFLAGS.patch  Size: 6kB   By:
rozzin

<http://savannah.gnu.org/patch/download.php?file_id=35620>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8818>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.