Mercurial > pub > dyncall > dyncall
comparison configure @ 170:ee0de14d5da0
- fixed configure on SunOS
* fixed use of which(1), more straightforward and on older versions we can't rely on return val
* CCC was not set correctly b/c of escape mistake
author | cslag |
---|---|
date | Sun, 08 Jan 2017 14:21:41 +0100 |
parents | 988f7587e4d4 |
children | 700c67984c08 |
comparison
equal
deleted
inserted
replaced
169:2fa600ea50e7 | 170:ee0de14d5da0 |
---|---|
166 printf "CXXFLAGS=${ARCHS} -isysroot ${SDKROOT}\n" >>$C | 166 printf "CXXFLAGS=${ARCHS} -isysroot ${SDKROOT}\n" >>$C |
167 printf "LDFLAGS=-Wl,-syslibroot ${SDKROOT}\n" >>$C | 167 printf "LDFLAGS=-Wl,-syslibroot ${SDKROOT}\n" >>$C |
168 ;; | 168 ;; |
169 SunOS) | 169 SunOS) |
170 # open distributions often don't come with default cc and CC, check for common alternatives. | 170 # open distributions often don't come with default cc and CC, check for common alternatives. |
171 printf "CC=` (which cc || which gcc || which clang ) | grep -v '^no '`\n" >>$C | 171 printf "CC=` (which cc gcc clang ) | grep -v '^no ' | head -1`\n" >>$C |
172 printf "CXX=`(which CC || which g++ || which clang++) | grep -v '^no '`\n" >>$C # C++ compiler traditionally named CC | 172 printf "CXX=`(which CC g++ clang++) | grep -v '^no ' | head -1`\n" >>$C # C++ compiler traditionally named CC |
173 printf "CCC=${CXX}\n" >>$C # Sun make's rules use CCC for c++ compiler | 173 printf "CCC=\${CXX}\n" >>$C # Sun make's rules use CCC for c++ compiler |
174 printf "LDLIBS=-lm\n" >>$C | 174 printf "LDLIBS=-lm\n" >>$C |
175 ;; | 175 ;; |
176 Minix) | 176 Minix) |
177 printf "CC=gcc\n" >>$C | 177 printf "CC=gcc\n" >>$C |
178 printf "CXX=g++\n">>$C | 178 printf "CXX=g++\n">>$C |