diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-25 23:29:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-25 23:29:12 +0000 |
commit | beef72b5c0c3bdf705ade933ac48c0d9fa184083 (patch) | |
tree | 393b74f3c33ca76ed512a7405de643dc81b1bb8e /ldso/libdl | |
parent | bb6334f6f024ca7f2d66d282e4cd34180f102a3e (diff) |
Move libdl and udate build method a bit
-Erik
Diffstat (limited to 'ldso/libdl')
-rw-r--r-- | ldso/libdl/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
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 *~ + |