summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2014-08-20 19:21:30 +0200
committerBrian Fraser <fraserbn@gmail.com>2014-08-20 20:27:19 +0200
commitff44ff0cff6fd900c7ab2c2483f4f54d6652d1ab (patch)
tree5e120e0df061fc81c30f146b573fd6c71cb66c8f /hints
parent1b190a66c0446de78472717686002533bc9a9707 (diff)
downloadperl-ff44ff0cff6fd900c7ab2c2483f4f54d6652d1ab.tar.gz
Android hints: define d_procselfexe and procselfexe if needed
Only affects cross-compile builds; currently the tests in Configure for this feature will be run on the host, not the target system, which makes the detection of the feature unreliable. Since we know that /proc/self/exe exists, just define it and set $procselfexe to that.
Diffstat (limited to 'hints')
-rw-r--r--hints/linux-android.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/hints/linux-android.sh b/hints/linux-android.sh
index 76cfceb7a0..a89eeb7e4e 100644
--- a/hints/linux-android.sh
+++ b/hints/linux-android.sh
@@ -251,6 +251,9 @@ fi # Cross-compiling with adb
case "$usecrosscompile" in
define)
+# The tests for this in Configure doesn't play nicely with
+# cross-compiling
+d_procselfexe="define"
if $test "X$hostosname" = "Xdarwin"; then
firstmakefile=GNUmakefile;
fi
@@ -280,9 +283,15 @@ case "$src" in
;;
esac
-$cat <<EOO >> $pwd/config.arch
+$cat <<'EOO' >> $pwd/config.arch
osname='android'
+
+if $test "X$procselfexe" = X; then
+ case "$d_procselfexe" in
+ define) procselfexe='"/proc/self/exe"';;
+ esac
+fi
EOO
# Android is a linux variant, so run those hints.