diff options
author | midipix <writeonce@midipix.org> | 2018-12-21 02:54:06 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-21 22:48:32 -0500 |
commit | 34c40ba9f25520c56113420fa8d1f74bbadaedc4 (patch) | |
tree | 9f5083e6f1b7f0ec6625242705d758c2ac17b0ae | |
parent | fe1e56cd27061f43d3d63c517cb2910b2a5f2656 (diff) | |
download | u16ports-34c40ba9f25520c56113420fa8d1f74bbadaedc4.tar.bz2 u16ports-34c40ba9f25520c56113420fa8d1f74bbadaedc4.tar.xz |
build system: configure: explicitly initialize all variables.
-rwxr-xr-x | configure | 7 | ||||
-rw-r--r-- | sofort/config.vars | 191 |
2 files changed, 198 insertions, 0 deletions
@@ -51,6 +51,13 @@ init_vars() mb_custom_cfgdefs_args='' mb_custom_cfgdefs_space='' + mb_vars=$(cat $mb_project_dir/sofort/config.vars | grep -v '^#') + + for mb_var in $mb_vars; do + mb_expr=$mb_var='${'$mb_var':-}' + eval "$mb_expr" + done + if [ -z "$mb_config" ]; then . $mb_project_dir/config.project || exit 2 else diff --git a/sofort/config.vars b/sofort/config.vars new file mode 100644 index 0000000..0189c6e --- /dev/null +++ b/sofort/config.vars @@ -0,0 +1,191 @@ +NICKNAME +SOURCE_DIR + +PREFIX +EXEC_PREFIX +BINDIR +SBINDIR +LIBDIR +INCLUDEDIR +OLDINCLUDEDIR +MANDIR +DOCDIR +LIBEXECDIR + +SYSCONFDIR +SHAREDSTATEDIR +LOCALSTATEDIR +RUNSTATEDIR +DATAROOTDIR +DATADIR +INFODIR +LOCALEDIR +HTMLDIR +DVIDIR +PDFDIR +PSDIR + +CC +CPP +CXX + +BUILD +HOST +CCHOST +CFGHOST +TARGET +ARCH +COMPILER +TOOLCHAIN +SYSROOT +CROSS_COMPILE +SHELL + +CFLAGS +CFLAGS_DEBUG +CFLAGS_COMMON +CFLAGS_CMDLINE +CFLAGS_CONFIG +CFLAGS_SYSROOT +CFLAGS_OS +CFLAGS_SITE +CFLAGS_PATH +CFLAGS_STRICT +CFLAGS_UTIL +CFLAGS_LAST +CFLAGS_ONCE + +LDFLAGS +LDFLAGS_DEBUG +LDFLAGS_COMMON +LDFLAGS_CMDLINE +LDFLAGS_CONFIG +LDFLAGS_SYSROOT +LDFLAGS_PATH +LDFLAGS_STRICT +LDFLAGS_UTIL +LDFLAGS_LAST +LDFLAGS_ONCE + +PE_SUBSYSTEM +PE_IMAGE_BASE +PE_CONFIG_DEFS + +ELF_EH_FRAME +ELF_HASH_STYLE +ELF_CONFIG_DEFS + +NATIVE_CC +NATIVE_CC_HOST +NATIVE_CC_CFGHOST +NATIVE_CC_CFLAGS +NATIVE_CC_LDFLAGS + +NATIVE_OS +NATIVE_OS_BITS +NATIVE_OS_UNDERSCORE + +# config +mb_config +mb_debug +mb_require_out_of_tree +mb_require_source_dir + +mb_use_custom_cfgdefs +mb_use_custom_usrdefs + +# flags +mb_prefix_set +mb_exec_prefix_set +mb_bindir_set + +# project +mb_package +mb_require_out_of_tree +mb_custom_install_headers +mb_avoid_version + +# pkgconfig +mb_pkgname +mb_pkgdesc +mb_pkgusrc +mb_pkgrepo +mb_pkgpsrc +mb_pkgdurl +mb_pkgdefs +mb_pkglibs + +# config +mb_all_static +mb_all_shared +mb_disable_frontend +mb_disable_static +mb_disable_shared + +# misc +mb_ccstrict +mb_ldstrict +mb_program_prefix +mb_bindir_basename +mb_git_reference_index + +# defaults +mb_default_build +mb_default_host +mb_default_cchost +mb_default_cfghost +mb_default_target +mb_default_arch +mb_default_compiler +mb_default_toolchain +mb_default_sysroot +mb_default_cross_compile +mb_default_shell + +mb_default_cflags_debug +mb_default_cflags_common +mb_default_cflags_cmdline +mb_default_cflags_config +mb_default_cflags_sysroot +mb_default_cflags_os +mb_default_cflags_site +mb_default_cflags_path +mb_default_cflags_strict +mb_default_cflags_util +mb_default_cflags_last +mb_default_cflags_once + +mb_default_ldflags_debug +mb_default_ldflags_common +mb_default_ldflags_cmdline +mb_default_ldflags_config +mb_default_ldflags_sysroot +mb_default_ldflags_path +mb_default_ldflags_strict +mb_default_ldflags_util +mb_default_ldflags_last +mb_default_ldflags_once + +mb_default_pe_subsystem +mb_default_pe_image_base +mb_default_pe_config_defs + +mb_default_elf_eh_frame +mb_default_elf_hash_style +mb_default_elf_config_defs + +mb_default_pkgname +mb_default_pkgdesc +mb_default_pkgusrc +mb_default_pkgrepo +mb_default_pkgpsrc +mb_default_pkgdurl +mb_default_pkgdefs +mb_default_pkglibs + +# cfgtest +mb_cfgtest_cc +mb_cfgtest_cflags +mb_cfgtest_cfgtype +mb_cfgtest_makevar +mb_cfgtest_headers |