summaryrefslogtreecommitdiff
path: root/ldso/util/Makefile
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2002-06-04 16:09:19 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2002-06-04 16:09:19 +0000
commit106caa4b6cd79a4a066a79fd55d9b6cafdc8a720 (patch)
tree0832d551d9f40c16fab783e7cfe1500bdff0ef02 /ldso/util/Makefile
parent611717e47e17abf61127ab37d6b66c31085d3f46 (diff)
If we are cross-compiling, don't even try to build the target utilities.
Diffstat (limited to 'ldso/util/Makefile')
-rw-r--r--ldso/util/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/ldso/util/Makefile b/ldso/util/Makefile
index 9dfc45a6f..7b2ce366e 100644
--- a/ldso/util/Makefile
+++ b/ldso/util/Makefile
@@ -24,7 +24,13 @@ TOPDIR=../../
include $(TOPDIR)Rules.mak
TARGET_CC = $(TOPDIR)extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc
-TARGETS=elf_header ldconfig ldd ldd.target readelf readelf.target
+TARGETS = elf_header ldd readelf
+ifeq ($(strip $(CROSS)),)
+TARGETS += ldd.target readelf.target
+endif
+ifneq ($(strip $(LIBRARY_CACHE)),)
+TARGETS += ldconfig
+endif
all: $(TARGETS)
elf_header:
@@ -38,10 +44,6 @@ readelf.target: readelf.c
$(TARGET_CC) $(CFLAGS) --uclibc-use-build-dir -Wl,-s readelf.c -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
-ifeq ($(strip $(LIBRARY_CACHE)),)
-ldconfig:
- echo "LIBRARY_CACHE disabled -- not building ldconfig"
-else
readsoname.o: readsoname.c readsoname2.c
$(NATIVE_CC) $(NATIVE_CFLAGS) -I . -c $< -o $@
strip -x -R .note -R .comment $*.o
@@ -54,7 +56,6 @@ ldconfig.o: ldconfig.c
ldconfig: ldconfig.o readsoname.o
$(NATIVE_CC) $(NATIVE_CFLAGS) $^ -o $@
strip -x -R .note -R .comment $@
-endif
ldd: ldd.c
$(NATIVE_CC) $(NATIVE_CFLAGS) -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \