summaryrefslogtreecommitdiff
path: root/sofort/ccenv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-18 21:13:57 +0000
committermidipix <writeonce@midipix.org>2021-04-18 21:16:27 +0000
commit2becd55bca6325bafeec024b80d11d885aa4f676 (patch)
tree7b7c68ec79d0844ff96f227923af89108b31fd70 /sofort/ccenv
parentc556acd8fee53e75c1afa241eeed1673b59f0941 (diff)
downloadapimagic-2becd55bca6325bafeec024b80d11d885aa4f676.tar.bz2
apimagic-2becd55bca6325bafeec024b80d11d885aa4f676.tar.xz
build system: purify rules for informational config-time targets.
Diffstat (limited to 'sofort/ccenv')
-rw-r--r--sofort/ccenv/ccenv.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index 8a7c4f2..9ed5b99 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -1390,12 +1390,14 @@ ccenv_common_init()
if [ $ccenv_cfgtype = 'host' ]; then
ccenv_tflags=
- ccenv_cflags=$(${mb_make} -s -f "$mb_pwd/Makefile.tmp" \
+ ccenv_cflags=$(${mb_make} -n -f "$mb_pwd/Makefile.tmp" \
OS_DSO_EXRULES=default \
OS_SONAME=symlink \
OS_ARCHIVE_EXT='.a' \
.cflags-host)
+ ccenv_cflags="${ccenv_cflags#*: }"
+
ccenv_cc="$mb_user_cc"
ccenv_cpp="$mb_user_cpp"
ccenv_cxx="$mb_user_cxx"
@@ -1404,12 +1406,14 @@ ccenv_common_init()
ccenv_pe_image_base="$mb_pe_image_base"
else
ccenv_tflags=
- ccenv_cflags=$(${mb_make} -s -f "$mb_pwd/Makefile.tmp" \
+ ccenv_cflags=$(${mb_make} -n -f "$mb_pwd/Makefile.tmp" \
OS_DSO_EXRULES=default \
OS_SONAME=symlink \
OS_ARCHIVE_EXT='.a' \
.cflags-native)
+ ccenv_cflags="${ccenv_cflags#*: }"
+
ccenv_cc="$mb_native_cc"
ccenv_cpp="$mb_native_cpp"
ccenv_cxx="$mb_native_cxx"