# HG changeset patch # User Tassilo Philipp # Date 1662282680 -7200 # Node ID cb162d45916d708532fb8fba00afc770702afdcd # Parent d1fa4b5a41f76227f1bd652e2d802316928b4ee2 ./configure for SunOS now uses isainfo(1) to deduce native instruction set diff -r d1fa4b5a41f7 -r cb162d45916d ChangeLog --- a/ChangeLog Sun Sep 04 10:36:51 2022 +0200 +++ b/ChangeLog Sun Sep 04 11:11:20 2022 +0200 @@ -34,6 +34,7 @@ signature and case generator) across test suites buildsys: o ./configure output for sun make builds: set correct C++ compiler flag var + o ./configure for SunOS now uses isainfo(1) to deduce native instruction set 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 diff -r d1fa4b5a41f7 -r cb162d45916d configure --- a/configure Sun Sep 04 10:36:51 2022 +0200 +++ b/configure Sun Sep 04 11:11:20 2022 +0200 @@ -180,9 +180,16 @@ # 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 "CCFLAGS=\${CXXFLAGS}\n" >>$C # Sun make's rules use CCFLAGS for c++ compiler flags printf "LDLIBS=-lm -ldl\n" >>$C + # make use of native instruction set, many open 64bit distributions execute 32 bit code and might default to that + if which isainfo >/dev/null && [ `isainfo -b` -eq 64 ]; then + printf "CFLAGS=-m64\n" >>$C + printf "CXXFLAGS=-m64\n" >>$C + printf "ASFLAGS=-m64\n" >>$C + fi + # Sun make's rules use CCC and CCFLAGS for c++ + printf "CCC=\${CXX}\n" >>$C + printf "CCFLAGS=\${CXXFLAGS}\n" >>$C ;; Minix) printf "CC=gcc\n" >>$C