Mercurial > pub > dyncall > dyncall
comparison configure @ 326:09aaa2e774cd
- configure:
* allow --target="macos" as alias for "MacOSX" or "Darwin" in configure
* typo
author | Tassilo Philipp |
---|---|
date | Fri, 22 Nov 2019 23:03:01 +0100 |
parents | d2c8ea3ef2ed |
children | fe31a2e3ac90 |
comparison
equal
deleted
inserted
replaced
325:7fbfddd1c354 | 326:09aaa2e774cd |
---|---|
3 usage() { | 3 usage() { |
4 cat <<EOF | 4 cat <<EOF |
5 usage: $0 --<option>=<value> <var>=<value> .. | 5 usage: $0 --<option>=<value> <var>=<value> .. |
6 | 6 |
7 --prefix=<dir> | 7 --prefix=<dir> |
8 --target=<platform> uname/special targets: MacOSX,iOS,iPhoneSimulator | 8 --target=<platform> uname/special targets: macos,iOS,iPhoneSimulator |
9 use "?" to get a list of explicitly specifiable | 9 use "?" to get a list of explicitly specifiable |
10 targets | 10 targets |
11 --sdk=<version> Mac OS X/iOS SDK version (e.g. '6.1' or '10.9.3') | 11 --sdk=<version> Mac OS X/iOS SDK version (e.g. '6.1' or '10.9.3') |
12 Tested iOS SDK versions: 4.3, 6.1, 8.1 | 12 Tested iOS SDK versions: 4.3, 6.1, 8.1 |
13 --sdkroot=<dir> | 13 --sdkroot=<dir> |
90 printf "LDLIBS=-lm\n" >>$C | 90 printf "LDLIBS=-lm\n" >>$C |
91 ;; | 91 ;; |
92 FreeBSD) | 92 FreeBSD) |
93 if [ -z "${CFLAGS}" ]; then | 93 if [ -z "${CFLAGS}" ]; then |
94 if [ `uname -m` = "mips" ] && make -V MACHINE_ARCH | grep 'hf$' >/dev/null 2>&1; then | 94 if [ `uname -m` = "mips" ] && make -V MACHINE_ARCH | grep 'hf$' >/dev/null 2>&1; then |
95 # FBSD12-CURRENT/mipshf needs to be told explicitly to use -mhard_float (at least as of may 2018) | 95 # FBSD12-CURRENT/mipshf needs to be told explicitly to use -mhard-float (at least as of may 2018) |
96 printf "CFLAGS=-fPIC -mhard-float\n" >>$C | 96 printf "CFLAGS=-fPIC -mhard-float\n" >>$C |
97 else | 97 else |
98 printf "CFLAGS=-fPIC\n" >>$C | 98 printf "CFLAGS=-fPIC\n" >>$C |
99 fi | 99 fi |
100 fi | 100 fi |
101 printf "LDLIBS=-lm\n" >>$C | 101 printf "LDLIBS=-lm\n" >>$C |
102 printf "RM=rm -f\n" >>$C | 102 printf "RM=rm -f\n" >>$C |
103 ;; | 103 ;; |
104 MacOSX|Darwin) | 104 MacOSX|macos|Darwin) |
105 # if Apple's libtool (not to be confused with GNU's) is available, which is according to libtool(1) "with -static [...] intended | 105 # if Apple's libtool (not to be confused with GNU's) is available, which is according to libtool(1) "with -static [...] intended |
106 # to replace ar(5) and ranlib", use it - if it is shadowed by some install of GNU's libtool assume that a foreign environment is | 106 # to replace ar(5) and ranlib", use it - if it is shadowed by some install of GNU's libtool assume that a foreign environment is |
107 # intentionally used, and fall back to using 'ar rs' (the equivalent to 'libtool -static'), for compatibility: | 107 # intentionally used, and fall back to using 'ar rs' (the equivalent to 'libtool -static'), for compatibility: |
108 if libtool -V >/dev/null 2>/dev/null; then # Apple's libtool has -V for version, which GNU does not. | 108 if libtool -V >/dev/null 2>/dev/null; then # Apple's libtool has -V for version, which GNU does not. |
109 printf "AR=libtool\n" >>$C | 109 printf "AR=libtool\n" >>$C |