comparison configure @ 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 09aaa2e774cd
children cb162d45916d
comparison
equal deleted inserted replaced
563:fcb9d00b5a00 564:fe31a2e3ac90
178 ;; 178 ;;
179 SunOS) 179 SunOS)
180 # open distributions often don't come with default cc and CC, check for common alternatives. 180 # open distributions often don't come with default cc and CC, check for common alternatives.
181 printf "CC=` (which cc gcc clang ) | grep -v '^no ' | head -1`\n" >>$C 181 printf "CC=` (which cc gcc clang ) | grep -v '^no ' | head -1`\n" >>$C
182 printf "CXX=`(which CC g++ clang++) | grep -v '^no ' | head -1`\n" >>$C # C++ compiler traditionally named CC 182 printf "CXX=`(which CC g++ clang++) | grep -v '^no ' | head -1`\n" >>$C # C++ compiler traditionally named CC
183 printf "CCC=\${CXX}\n" >>$C # Sun make's rules use CCC for c++ compiler 183 printf "CCC=\${CXX}\n" >>$C # Sun make's rules use CCC for c++ compiler
184 printf "CCFLAGS=\${CXXFLAGS}\n" >>$C # Sun make's rules use CCFLAGS for c++ compiler flags
184 printf "LDLIBS=-lm -ldl\n" >>$C 185 printf "LDLIBS=-lm -ldl\n" >>$C
185 ;; 186 ;;
186 Minix) 187 Minix)
187 printf "CC=gcc\n" >>$C 188 printf "CC=gcc\n" >>$C
188 printf "CXX=g++\n">>$C 189 printf "CXX=g++\n">>$C