summaryrefslogtreecommitdiff
path: root/ldso/libdl
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-24 20:40:53 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-24 20:40:53 +0000
commit2b1a8538a181219b579c69dc2ed94b5a2c31d291 (patch)
tree193ba71bb6eee5142cfb40828788e5afc50cf925 /ldso/libdl
parent4a8caed2ad95e0c07f57051c39fc7bbe81c548d7 (diff)
Avoid a chicken-and-the-egg problem. Use $(LD) to compile the
libdl library, not $(CC). -Erik
Diffstat (limited to 'ldso/libdl')
-rw-r--r--ldso/libdl/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile
index 8578357ab..7f37bbf33 100644
--- a/ldso/libdl/Makefile
+++ b/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)