From 88f4e57d068d11d357f0fea9c980a7f688608ee9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 04 Apr 2013 11:31:28 -0400 Subject: Set some cache vars only for bootstrap builds. Also, make cache variable writing a bit more efficient. --- (limited to 'build') 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 \ -- cgit v0.9.1