summaryrefslogtreecommitdiff
path: root/mk/cc.mk
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-01-29 17:32:38 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-01-31 14:05:57 -0600
commitcca7e9f7e1143f3405bc90ff8e2176d82ab491ef (patch)
tree63fee486bd9b9729b7defc66577daae1fddc1c1b /mk/cc.mk
parentc2529c1ed61816799dd56bb46699b2b8cf5acb39 (diff)
downloadopenrc-cca7e9f7e1143f3405bc90ff8e2176d82ab491ef.tar.gz
openrc-cca7e9f7e1143f3405bc90ff8e2176d82ab491ef.tar.bz2
openrc-cca7e9f7e1143f3405bc90ff8e2176d82ab491ef.tar.xz
use immediate evaluation for shell calls
This reworks the shell calls in the makefiles to use immediate evaluation and should improve parallel building. X-Gentoo-Bug: 289264 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=289264
Diffstat (limited to 'mk/cc.mk')
-rw-r--r--mk/cc.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/cc.mk b/mk/cc.mk
index 2c912d5..74a816e 100644
--- a/mk/cc.mk
+++ b/mk/cc.mk
@@ -6,8 +6,8 @@ CFLAGS?= -O2
# Default to using the C99 standard
CSTD?= c99
_CSTD_SH= if test -n "${CSTD}"; then echo "-std=${CSTD}"; else echo ""; fi
-_CSTD!= ${_CSTD_SH}
-CFLAGS+= ${_CSTD}$(shell ${_CSTD_SH})
+_CSTD:= $(shell ${_CSTD_SH})
+CFLAGS+= ${_CSTD}
# Try and use some good cc flags if we're building from git
# We don't use -pedantic as it will warn about our perfectly valid
@@ -29,5 +29,5 @@ _CC_FLAGS_SH= for f in ${_CCFLAGS}; do \
${CC} $$f -S -xc -o /dev/null - ; \
then printf "%s" "$$f "; fi \
done;
-_CC_FLAGS!= ${_CC_FLAGS_SH}
-CFLAGS+= ${_CC_FLAGS}$(shell ${_CC_FLAGS_SH})
+_CC_FLAGS:= $(shell ${_CC_FLAGS_SH})
+CFLAGS+= ${_CC_FLAGS}