1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Build on more darwin/macOS versions

src/cmd/INIT/cc.darwin*:
- Build on ancient Mac OS X gcc versions (darwin 7+, Mac OS X
  10.3+), more recent gcc versions (darwin 11+, Mac OS X 10.7+), as
  well as current clang versions. So there are now three cc.darwin*
  wrapper scripts for these different darwin versions.

bin/package, src/cmd/INIT/package.sh:
- Differentiate the host ID and pick the correct Darwin script based on
  the detected OS release version.
This commit is contained in:
Martijn Dekker 2020-06-11 19:59:51 +02:00
parent 04b9171858
commit 7a8a46700c
4 changed files with 83 additions and 4 deletions

View file

@ -2396,7 +2396,10 @@ int main()
case $lhs in
bsdi) lhs=bsd ;;
darwin) case $(/usr/bin/cc --version) in
*'(GCC)'*) lhs=${lhs}_old ;;
*'(GCC)'*) case $rel in
[0-9].*|10.*) lhs=darwin07 ;;
*) lhs=darwin11 ;;
esac ;;
esac
;;
freebsd) case $rel in