summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-05 17:40:14 -0500
committermidipix <writeonce@midipix.org>2019-01-05 17:41:23 -0500
commit73dec9bd24354fd2650911cd4be7b07ced67c1e1 (patch)
tree0118ffd9cd2efdc05d9d5bfcb1ebdea5b1621cf4 /project/config
parent77b49839d6337e4def4f93477963818c5be89f2b (diff)
downloadsbpython2-73dec9bd24354fd2650911cd4be7b07ced67c1e1.tar.bz2
sbpython2-73dec9bd24354fd2650911cd4be7b07ced67c1e1.tar.xz
project: custom config: elegantly handle --prefix= on behalf of python.
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index ce35a70..f656f49 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -43,6 +43,18 @@ for arg ; do
done
+cfgdefs_set_python_prefix()
+{
+ if [ -z "$mb_prefix" ]; then
+ mb_prefix='/.'
+ fi
+
+ if [ -z "$mb_exec_prefix" ]; then
+ mb_exec_prefix='/.'
+ fi
+}
+
+
cfgdefs_set_cfghost_flavors()
{
cfghost_set_target_cfghost
@@ -443,6 +455,9 @@ cfgdefs_perform_native_tests()
}
+# prefix, exec_prefix
+cfgdefs_set_python_prefix
+
# cfghost
cfgdefs_set_cfghost_flavors