From 73dec9bd24354fd2650911cd4be7b07ced67c1e1 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 05 2019 22:41:23 +0000 Subject: project: custom config: elegantly handle --prefix= on behalf of python. --- 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