summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-10-11 16:55:08 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-26 14:44:22 -0300
commit8264380738475a9f04fbb7b870fa4adcc701daf9 (patch)
treee90bbcbf7e8904238d98c3afc5d4d1a19edc685d /Configure
parent081c3f5046f7dc6414b133a6c9a5aac8d97c900f (diff)
downloadperl-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-xConfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/Configure b/Configure
index 71fa2d2ae2..7fc99b50ae 100755
--- a/Configure
+++ b/Configure
@@ -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