changeset 564:fe31a2e3ac90

./configure output for sun make builds: set correct C++ compiler flag var
author Tassilo Philipp
date Sun, 04 Sep 2022 00:49:56 +0200
parents fcb9d00b5a00
children d1fa4b5a41f7
files ChangeLog configure
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Sep 04 00:20:24 2022 +0200
+++ b/ChangeLog	Sun Sep 04 00:49:56 2022 +0200
@@ -32,6 +32,8 @@
   o callback_plain_c++: new test, focusing on methods and non-trivial C++ aggregates
   o simplifications and major refactoring to share more code (especially
     signature and case generator) across test suites
+buildsys:
+  o ./configure output for sun make builds: set correct C++ compiler flag var
 doc:
   o callconv section additions about aggregate-by-value passing for all platforms
   o new Linux-Std-Base-specific PPC32/SysV section, as aggregate retval handling differs from
--- a/configure	Sun Sep 04 00:20:24 2022 +0200
+++ b/configure	Sun Sep 04 00:49:56 2022 +0200
@@ -180,7 +180,8 @@
     # open distributions often don't come with default cc and CC, check for common alternatives.
     printf "CC=` (which cc gcc clang  ) | grep -v '^no ' | head -1`\n" >>$C
     printf "CXX=`(which CC g++ clang++) | grep -v '^no ' | head -1`\n" >>$C # C++ compiler traditionally named CC
-    printf "CCC=\${CXX}\n" >>$C # Sun make's rules use CCC for c++ compiler
+    printf "CCC=\${CXX}\n" >>$C          # Sun make's rules use CCC for c++ compiler
+    printf "CCFLAGS=\${CXXFLAGS}\n" >>$C # Sun make's rules use CCFLAGS for c++ compiler flags
     printf "LDLIBS=-lm -ldl\n" >>$C
     ;;
   Minix)