Mercurial > pub > dyncall > dyncall
comparison 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 |
comparison
equal
deleted
inserted
replaced
565:d1fa4b5a41f7 | 566:cb162d45916d |
---|---|
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 | |
184 printf "CCFLAGS=\${CXXFLAGS}\n" >>$C # Sun make's rules use CCFLAGS for c++ compiler flags | |
185 printf "LDLIBS=-lm -ldl\n" >>$C | 183 printf "LDLIBS=-lm -ldl\n" >>$C |
184 # make use of native instruction set, many open 64bit distributions execute 32 bit code and might default to that | |
185 if which isainfo >/dev/null && [ `isainfo -b` -eq 64 ]; then | |
186 printf "CFLAGS=-m64\n" >>$C | |
187 printf "CXXFLAGS=-m64\n" >>$C | |
188 printf "ASFLAGS=-m64\n" >>$C | |
189 fi | |
190 # Sun make's rules use CCC and CCFLAGS for c++ | |
191 printf "CCC=\${CXX}\n" >>$C | |
192 printf "CCFLAGS=\${CXXFLAGS}\n" >>$C | |
186 ;; | 193 ;; |
187 Minix) | 194 Minix) |
188 printf "CC=gcc\n" >>$C | 195 printf "CC=gcc\n" >>$C |
189 printf "CXX=g++\n">>$C | 196 printf "CXX=g++\n">>$C |
190 printf "AR=ar\n" >>$C | 197 printf "AR=ar\n" >>$C |