summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-05 17:40:14 -0500
committermidipix <writeonce@midipix.org>2019-01-05 17:40:14 -0500
commitdb1f1a7346117241e750ec9c4689d3875ead5fd9 (patch)
treef055ba3b9a2626a2dcc357b70ceb8c93bdebafe5
parent5a66328f96d0cd4c7854830a0e575040398be04e (diff)
downloadsbpython3-db1f1a7346117241e750ec9c4689d3875ead5fd9.tar.bz2
sbpython3-db1f1a7346117241e750ec9c4689d3875ead5fd9.tar.xz
project: custom config: elegantly handle --prefix= on behalf of python.
-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