Browse Source

Be more careful about not hard coding names.

Eric Andersen 23 years ago
parent
commit
d13c6558a8
5 changed files with 22 additions and 7 deletions
  1. 17 0
      ldso/Rules.mak
  2. 1 1
      ldso/ldso/.cvsignore
  3. 1 2
      ldso/ldso/Makefile
  4. 1 1
      ldso/libdl/.cvsignore
  5. 2 3
      ldso/libdl/Makefile

+ 17 - 0
ldso/Rules.mak

@@ -0,0 +1,17 @@
+include $(TOPDIR)Rules.mak
+
+LDSO_VERSION=1.9.11
+LDSO_VMAJOR=$(MAJOR_VERSION)
+DLINKER = ld-linux-uclibc.so
+LIBDL = libdl.so
+
+DEVEL=true
+
+# Do NOT use -fomit-frame-pointer -- It won't work!
+CFLAGS	+= -DVERSION=\"$(LDSO_VERSION)\"
+
+CC = $(TOPDIR)extra/gcc-uClibc/$(NATIVE_ARCH)-uclibc-gcc
+ifeq ($(DEVEL),true)
+	CFLAGS += -DUCLIBC_INSTALL_DIR=\"/usr/$(TARGET_ARCH)-linux-uclibc\"
+	CFLAGS += -DUCLIBC_DEVEL
+endif

+ 1 - 1
ldso/ldso/.cvsignore

@@ -1,2 +1,2 @@
-ld-linux-uclibc.so.0
+ld-linux-uclibc.so*
 

+ 1 - 2
ldso/ldso/Makefile

@@ -1,6 +1,5 @@
 TOPDIR=../../
-include $(TOPDIR)Rules.mak
-include $(TOPDIR)/ld.so-1/Config.mk
+include $(TOPDIR)/ld.so-1/Rules.mak
 
 DIRS = $(TARGET_ARCH)
 

+ 1 - 1
ldso/libdl/.cvsignore

@@ -1,2 +1,2 @@
-libdl.so.0
+libdl.so*
 

+ 2 - 3
ldso/libdl/Makefile

@@ -1,6 +1,5 @@
 TOPDIR=../../
-include $(TOPDIR)Rules.mak
-include $(TOPDIR)/ld.so-1/Config.mk
+include $(TOPDIR)/ld.so-1/Rules.mak
 
 CFLAGS += -DNO_UNDERSCORE -DVERBOSE_DLINKER -DUSE_CACHE
 CFLAGS += #-fPIC -D__PIC__ #-funroll-loops
@@ -21,7 +20,7 @@ ELF_LDFLAGS=--shared -nostartfiles -nostdlib # using GNU ld
 lib:: $(OBJS)
 	$(CC) $(ELF_LDFLAGS) \
 		-o $(LIBDL).$(LDSO_VMAJOR) -Wl,-soname -Wl,$(LIBDL).$(LDSO_VMAJOR) \
-		*.o $(TOPDIR)uClibc-0.95.so
+		*.o $(TOPDIR)$(SHARED_FULLNAME)
 
 obj: $(OBJS)