summaryrefslogtreecommitdiff
path: root/ldso/util/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-09 21:32:05 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-09 21:32:05 +0000
commitc872d905a7e0e48c44eaa080dbf6d465c6321685 (patch)
treedf740a4268c7d8afc83e07ceb48cfd73b8e7886f /ldso/util/Makefile
parentec8e01283579aeee5a497fc05445bf2fe02faf67 (diff)
Build a native uClibc ldd
Diffstat (limited to 'ldso/util/Makefile')
-rw-r--r--ldso/util/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/ldso/util/Makefile b/ldso/util/Makefile
index 99d0bf04b..c6b3e9df0 100644
--- a/ldso/util/Makefile
+++ b/ldso/util/Makefile
@@ -23,7 +23,8 @@
TOPDIR=../../
include $(TOPDIR)Rules.mak
-all: ldconfig ldd readelf
+TARGETS=ldd.uclibc ldd readelf ldconfig
+all: $(TARGETS)
readsoname.o: readsoname.c readsoname2.c
$(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@
@@ -55,6 +56,14 @@ ldd: ldd.c
-static ldd.c -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
+ldd.uclibc: ldd.c
+ $(NATIVE_CC) $(NATIVE_CFLAGS) -g -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \
+ -DUCLIBC_DEVEL_PREFIX=\"$(DEVEL_PREFIX)\" \
+ -DUCLIBC_BUILD_DIR=\"$(shell cd $(TOPDIR) && pwd)\" \
+ -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" \
+ ldd.c -o $@
+ $(STRIPTOOL) -x -R .note -R .comment $@
+
clean:
- rm -f ldconfig ldd readelf *.o *~ core
+ rm -f $(TARGETS) *.o *~ core