From beef72b5c0c3bdf705ade933ac48c0d9fa184083 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 25 Apr 2001 23:29:12 +0000 Subject: Move libdl and udate build method a bit -Erik --- ldso/libdl/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'ldso/libdl/Makefile') diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile index 7f37bbf33..3ebc7fea8 100644 --- a/ldso/libdl/Makefile +++ b/ldso/libdl/Makefile @@ -1,26 +1,27 @@ -TOPDIR=../../../ +TOPDIR=../../ include $(TOPDIR)Rules.mak include $(TOPDIR)/ld.so-1/Config.mk CFLAGS += -DNO_UNDERSCORE -DVERBOSE_DLINKER -DUSE_CACHE CFLAGS += #-fPIC -D__PIC__ #-funroll-loops -LIBDL = libdl.so - CSRC= dlib.c COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(COBJS) +all: lib + $(COBJS): %.o : %.c - $(CC) -I.. -I../$(TARGET_ARCH) $(CFLAGS) -c $< -o $@ + $(CC) -I../d-link -I../d-link/$(TARGET_ARCH) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o ELF_LDFLAGS=--shared -nostartfiles -nostdlib # using GNU ld #ELF_LDFLAGS=-G # with SVr4 ld lib:: $(OBJS) - $(LD) $(ELF_LDFLAGS) -o $(LIBDL).$(LDSO_VMAJOR) \ - -soname $(LIBDL).$(LDSO_VMAJOR) *.o -lc + $(CC) $(ELF_LDFLAGS) \ + -o $(LIBDL).$(LDSO_VMAJOR) -Wl,-soname -Wl,$(LIBDL).$(LDSO_VMAJOR) \ + *.o $(TOPDIR)uClibc-0.95.so obj: $(OBJS) @@ -28,4 +29,5 @@ realclean:: $(RM) -f .depend $(LIBDL) core *.o *.a *.s *.i tmp_make foo *~ clean:: - $(RM) -f $(LIBDL) core *.o *.a *.s *.i tmp_make foo *~ + $(RM) -f $(LIBDL)* core *.o *.a *.s *.i tmp_make foo *~ + -- cgit v1.2.3