summaryrefslogtreecommitdiff
path: root/ldso/util/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-04 22:13:51 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-04 22:13:51 +0000
commitf68eb8d50b11310628f53a9378bf612e8d4bfa09 (patch)
treee3a4073bbc3ac2349c89ad9b3494b05838f95c0b /ldso/util/Makefile
parent03f338ab663d8b2fa16c8d1f83be51ecf9c79312 (diff)
Teach the ldso stuff to use the proper elf.h header file, not a local copy.
-Erik
Diffstat (limited to 'ldso/util/Makefile')
-rw-r--r--ldso/util/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/ldso/util/Makefile b/ldso/util/Makefile
index a8f482f20..8fe733eb9 100644
--- a/ldso/util/Makefile
+++ b/ldso/util/Makefile
@@ -2,14 +2,15 @@ TOPDIR=../../
include $(TOPDIR)/ldso/Rules.mak
CFLAGS += -DLDSO_ADDR="0x62f00020" # needed by ldd.o
-CFLAGS += -I./ -I../../include/
-LDFLAGS += -nostdlib $(TOPDIR)lib/libc.a $(TOPDIR)lib/crt0.o $(GCCINCDIR)/../libgcc.a
+#CFLAGS += -I./ -I../../include/
+#LDFLAGS += -nostdlib $(TOPDIR)lib/libc.a $(TOPDIR)lib/crt0.o $(GCCINCDIR)/../libgcc.a
+LDFLAGS += $(TOPDIR)lib/libc.a $(TOPDIR)lib/crt0.o $(GCCINCDIR)/../libgcc.a
-ALL = ldconfig ldd # lddstub
+ALL = ldconfig ldd readelf # lddstub
all: $(ALL)
-CSRC= readelf.c ldconfig.c ldd.c
+CSRC= readelf.c ldconfig.c ldd.c readsoname.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
@@ -17,13 +18,16 @@ $(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
-readelf.o: readelf.c readelf2.c
+readsoname.o: readsoname.c readsoname2.c
-ldconfig: ldconfig.o readelf.o
- $(CC) -static $(CFLAGS) $^ $(LDFLAGS) -o $@
+readelf: readelf.o
+ $(CC) $(CFLAGS) $^ -o $@
-ldd: ldd.o readelf.o
- $(CC) -static $(CFLAGS) $^ $(LDFLAGS) -o $@
+ldconfig: ldconfig.o readsoname.o
+ $(CC) $(CFLAGS) $^ -o $@
+
+ldd: ldd.o readsoname.o
+ $(CC) $(CFLAGS) $^ -o $@
#ifeq ($(DEBUG),true)
#STUBFLAGS = -Wl,-dynamic-linker,../d-link/ld-linux.so