summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/build b/build
index 2a8b3bb..aa7adcb 100755
--- a/build
+++ b/build
@@ -34,13 +34,13 @@ configure-libc:
printf '%s\n' \
'libc_cv_slibdir=/lib/$(OPK_HOST_ARCH)' \
>>libcbuild/config.cache; \
- if [ -n "$${TOOLS_PREFIX}" ]; then \
- BINUTILS="--with-binutils=$${TOOLS_PREFIX}/bin"; \
+ if [ 'x$(TOOLS_PREFIX)' != 'x' ]; then \
+ BINUTILS="--with-binutils=$(TOOLS_PREFIX)/bin"; \
else \
BINUTILS=; \
fi && \
- if [ -n "$${HEADERS_PREFIX}" ]; then \
- HEADERS="--with-headers=$${HEADERS_PREFIX}/usr/include"; \
+ if [ 'x$(HEADERS_PREFIX)' != 'x' ]; then \
+ HEADERS="--with-headers=$(HEADERS_PREFIX)/usr/include"; \
else \
HEADERS=; \
fi && \
@@ -53,8 +53,8 @@ configure-libc:
--enable-kernel=3.2.0 \
--with-tls --with-__thread --without-cvs \
--without-selinux --without-gd \
- $${BINUTILS} \
- $${HEADERS} \
+ $(BINUTILS) \
+ $(HEADERS) \
--cache-file=config.cache
touch $@