diff options
author | Brian Fraser <fraserbn@gmail.com> | 2013-10-11 16:55:08 -0300 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-26 14:44:22 -0300 |
commit | 8264380738475a9f04fbb7b870fa4adcc701daf9 (patch) | |
tree | e90bbcbf7e8904238d98c3afc5d4d1a19edc685d /Configure | |
parent | 081c3f5046f7dc6414b133a6c9a5aac8d97c900f (diff) | |
download | perl-8264380738475a9f04fbb7b870fa4adcc701daf9.tar.gz |
Configure: added special osname checks for nto and android
When cross-compiling, for android, anything matching *linux-android*
gets osname=linux-androideabi. This is to allow compiling to
all three android variants (x86, arm, mips).
For QNX Neutrino, anything matching nto*|*-nto-* gets osname=nto. In
the future, that might change to 'qnx', but right now we don't want
it to pick up the hints file.
For anything else, keep the current behavior, which is to set osname
to the output of `echo $targetarch|sed 's,^[^-]*-,,'`
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -3541,7 +3541,19 @@ EOM case "$targetarch" in '') ;; *) hostarch=$osname - osname=`echo $targetarch|sed 's,^[^-]*-,,'` + case "$targetarch" in + nto*|*-nto-*) + osname=nto + ;; + *linux-android*) + # Catch arm-linux-androideabi, mipsel-linux-android, + # and i686-linux-android + osname=linux-android + ;; + *) + osname=`echo $targetarch|sed 's,^[^-]*-,,'` + ;; + esac osvers='' ;; esac |