bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sr #110484] CFLAGS/CXXFLAGS and CPPFLAGS order in c.m4 ac_compile is no


From: Zack Weinberg
Subject: [sr #110484] CFLAGS/CXXFLAGS and CPPFLAGS order in c.m4 ac_compile is nonstandard
Date: Fri, 8 Dec 2023 12:46:53 -0500 (EST)

Update of sr#110484 (group autoconf):

                Severity:           4 - Important => 3 - Normal             
                  Status:                    None => Invalid                

    _______________________________________________________

Follow-up Comment #1:

Autoconf is consistent with GNU make's implicit rules:


make: *** No targets.  Stop.
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c


Therefore I think it is actually Automake, and the expectations of
AX_CHECK_COMPILE_FLAG, that are incorrect here.

Please take this up with both the maintainers of Automake (see
https://www.gnu.org/software/automake/manual/html_node/Reporting-Bugs.html)
and the maintainers of GNU make (write to bug-make@gnu.org).  If they both
agree that the order ought to be CPPFLAGS first, and GNU make's implicit rules
are changed, then I will change Autoconf to match.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110484>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]