diff options
author | P. 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) |
commit | 83d746f79e61b214b60c4a293bbfb24018cc6ef2 (patch) | |
tree | f64074a754fa291b7e8352ce19d7eb4be1157d01 | |
parent | 88f4e57d068d11d357f0fea9c980a7f688608ee9 (diff) |
build: Change shell parameters to makefile macros.
-rwxr-xr-x | build | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 $@ |