Android hints: Only set userelocatableinc if it doesn't have a value
authorBrian Fraser <fraserbn@gmail.com>
Wed, 21 Aug 2013 03:38:14 +0000 (00:38 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Sun, 26 Jan 2014 17:44:20 +0000 (14:44 -0300)
Without this, Configure would've bailed out if trying to build a
-Duseshrplib perl.

hints/linux-android.sh

index 0c7d26c..3d2c3ce 100644 (file)
@@ -1,7 +1,9 @@
 # set -x
 
 # Install the perl and its libraries anywhere:
-userelocatableinc='define'
+case "$userelocatableinc" in
+'') userelocatableinc='define' ;;
+esac
 
 # The Android linker has some unusual behavior: No matter what
 # path is passed in to dlopen(), it'll only use the path's