summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
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 \