summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-09 02:00:10 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-09 02:00:10 +0000
commit748d47d24b0ec7c3d46748280bef1a06d716a07c (patch)
treeaec01b515a6f3a05f626fb5b27876f0d0e0d3604 /libc
parentc1f2ff74285a4bf1b7d3e9e4a8979cbc73957767 (diff)
use make builtin $(wildcard) rather than $(shell ls)
Diffstat (limited to 'libc')
-rw-r--r--libc/Makefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/Makefile.in b/libc/Makefile.in
index 88b61819a..1e0b58437 100644
--- a/libc/Makefile.in
+++ b/libc/Makefile.in
@@ -33,8 +33,10 @@ include $(libc_DIR)/unistd/Makefile.in
# Check if the target architecture has a version script for
# libc, and if so, include it when linking.
-VERSION_SCRIPT:=${shell if [ -f $(libc_DIR)/sysdeps/linux/$(TARGET_ARCH)/libc.map ] ; then \
- echo "--version-script $(libc_DIR)/sysdeps/linux/$(TARGET_ARCH)/libc.map"; fi}
+VERSION_SCRIPT := $(wildcard $(libc_DIR)/sysdeps/linux/$(TARGET_ARCH)/libc.map)
+ifneq ($(VERSION_SCRIPT),)
+VERSION_SCRIPT := --version-script $(VERSION_SCRIPT)
+endif
EXTRA_LINK_OPTS:=$(VERSION_SCRIPT) -init __uClibc_init
EXTRA_LINK_LIBS:=$(libc_OUT)/misc/internals/interp.os $(top_builddir)lib/$(UCLIBC_LDSO) $(LIBGCC) # $(LDADD_LIBFLOAT)