Browse Source

Avoid a chicken-and-the-egg problem. Use $(LD) to compile the
libdl library, not $(CC).
-Erik

Eric Andersen 23 years ago
parent
commit
2b1a8538a1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ldso/libdl/Makefile

+ 2 - 2
ldso/libdl/Makefile

@@ -19,8 +19,8 @@ ELF_LDFLAGS=--shared -nostartfiles -nostdlib # using GNU ld
 #ELF_LDFLAGS=-G  # with SVr4 ld
 
 lib:: $(OBJS)
-	$(CC) $(ELF_LDFLAGS) -o $(LIBDL).$(LDSO_VMAJOR) \
-		 -Wl,-soname -Wl,$(LIBDL).$(LDSO_VMAJOR) *.o -lc
+	$(LD) $(ELF_LDFLAGS) -o $(LIBDL).$(LDSO_VMAJOR) \
+		 -soname $(LIBDL).$(LDSO_VMAJOR) *.o -lc
 
 obj: $(OBJS)