diff options
Diffstat (limited to 'ldso/libdl/Makefile')
-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 *~ + |