summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-04 11:44:57 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-04 11:44:57 (EDT)
commit83d746f79e61b214b60c4a293bbfb24018cc6ef2 (patch)
treef64074a754fa291b7e8352ce19d7eb4be1157d01 /build
parent88f4e57d068d11d357f0fea9c980a7f688608ee9 (diff)
build: Change shell parameters to makefile macros.
Diffstat (limited to 'build')
-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 $@