summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-02-14 04:46:12 -0500
committermidipix <writeonce@midipix.org>2016-02-14 04:46:12 -0500
commite6d235f7f2c7282878a21160837b487787a8e94e (patch)
tree3030b21f3d6d8942b81fbf5cfc6df1dcfc9d374b /configure
parent86378e8db14957534db3e23bcf63eb5bad0d7563 (diff)
downloadsofort-e6d235f7f2c7282878a21160837b487787a8e94e.tar.bz2
sofort-e6d235f7f2c7282878a21160837b487787a8e94e.tar.xz
build system: add support for CFLAGS_OS and CFLAGS_SITE.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index 3e222ce..dca0d7e 100755
--- a/configure
+++ b/configure
@@ -56,6 +56,8 @@ init_vars()
mb_cflags_cmdline=$CFLAGS_CMDLINE
mb_cflags_config=$CFLAGS_CONFIG
mb_cflags_sysroot=$CFLAGS_SYSROOT
+ mb_cflags_os=$CFLAGS_OS
+ mb_cflags_site=$CFLAGS_SITE
mb_cflags_path=$CFLAGS_PATH
mb_ldflags=$LDFLAGS
@@ -128,6 +130,8 @@ common_defaults()
[ -z "$mb_cflags_cmdline" ] && mb_cflags_cmdline=$mb_default_cflags_cmdline
[ -z "$mb_cflags_config" ] && mb_cflags_config=$mb_default_cflags_config
[ -z "$mb_cflags_sysroot" ] && mb_cflags_sysroot=$mb_default_cflags_sysroot
+ [ -z "$mb_cflags_os" ] && mb_cflags_os=$mb_default_cflags_os
+ [ -z "$mb_cflags_site" ] && mb_cflags_site=$mb_default_cflags_site
[ -z "$mb_cflags_path" ] && mb_cflags_path=$mb_default_cflags_path
[ -z "$mb_ldflags_debug" ] && mb_ldflags_debug=$mb_default_ldflags_debug
@@ -286,6 +290,8 @@ config_copy()
-e 's^@cflags_cmdline@^'"$mb_cflags $mb_cflags_cmdline"'^g' \
-e 's^@cflags_config@^'"$mb_cflags_config"'^g' \
-e 's^@cflags_sysroot@^'"$mb_cflags_sysroot"'^g' \
+ -e 's^@cflags_os@^'"$mb_cflags_os"'^g' \
+ -e 's^@cflags_site@^'"$mb_cflags_site"'^g' \
-e 's^@cflags_path@^'"$mb_cflags_path"'^g' \
\
-e 's^@ldflags@^'"$mb_ldflags"'^g' \