Mercurial > pub > dyncall > dyncall
diff configure @ 566:cb162d45916d
./configure for SunOS now uses isainfo(1) to deduce native instruction set
author | Tassilo Philipp |
---|---|
date | Sun, 04 Sep 2022 11:11:20 +0200 |
parents | fe31a2e3ac90 |
children | 965451c44faf |
line wrap: on
line diff
--- 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