summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-04 11:31:28 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-04 11:41:13 (EDT)
commit88f4e57d068d11d357f0fea9c980a7f688608ee9 (patch)
tree4cb036cef084c08d74c7165e2b47da3d2a30bd46 /build
parentd342f07fee62d05c7b8d879a8b8e977290b39cef (diff)
Set some cache vars only for bootstrap builds.
Also, make cache variable writing a bit more efficient.
Diffstat (limited to 'build')
-rwxr-xr-xbuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/build b/build
index 53fd58b..2a8b3bb 100755
--- a/build
+++ b/build
@@ -23,12 +23,17 @@ nop:
configure-libc:
[ ! -d libcbuild ] && mkdir libcbuild || true
rm -f libcbuild/config.cache
- echo 'libc_cv_forced_unwind=yes' >>libcbuild/config.cache
- echo 'libc_cv_c_cleanup=yes' >>libcbuild/config.cache
- echo 'libc_cv_gnu89_inline=yes' >>libcbuild/config.cache
- echo 'libc_cv_ssp=no' >>libcbuild/config.cache
- echo 'libc_cv_slibdir=/lib/'"$${OPK_HOST_ARCH}" \
- >>libcbuild/config.cache
+ if [ 'x$(OPK_HOST_PLAT)' = 'xbootstrap1' ]; then \
+ printf '%s\n' \
+ 'libc_cv_forced_unwind=yes' \
+ 'libc_cv_c_cleanup=yes' \
+ 'libc_cv_gnu89_inline=yes' \
+ 'libc_cv_ssp=no' \
+ >>libcbuild/config.cache; \
+ fi
+ printf '%s\n' \
+ 'libc_cv_slibdir=/lib/$(OPK_HOST_ARCH)' \
+ >>libcbuild/config.cache; \
if [ -n "$${TOOLS_PREFIX}" ]; then \
BINUTILS="--with-binutils=$${TOOLS_PREFIX}/bin"; \
else \