summaryrefslogtreecommitdiff
path: root/ldso/libdl/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-11 13:27:37 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-11 13:27:37 +0000
commit6a461519b91a521a98e0be1bf272bcdac48c6f7e (patch)
treee59f02dba9eaf3bb7bcb86444c2765b10e0a9450 /ldso/libdl/Makefile
parent072938a98d1f5d454476c218a253daddfa59e2dc (diff)
Scrub the way libraries are linked. Use ld, not gcc, to avoid
chicken-and-egg problems when building gcc toolchains. -Erik
Diffstat (limited to 'ldso/libdl/Makefile')
-rw-r--r--ldso/libdl/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile
index faaced6c0..cccd9e473 100644
--- a/ldso/libdl/Makefile
+++ b/ldso/libdl/Makefile
@@ -50,8 +50,9 @@ $(OBJS): %.o : %.c
$(OBJ): Makefile
shared: all
- $(TARGET_CC) $(TARGET_LDFLAGS) -nostdlib -shared -o $(LIBDL_SHARED_FULLNAME) \
- -Wl,-soname,$(LIBDL_SHARED).$(MAJOR_VERSION) -Wl,--whole-archive $(LIBDL) -lc
+ $(LD) $(LDFLAGS) -o $(LIBDL_SHARED_FULLNAME) \
+ -soname=$(LIBDL_SHARED).$(MAJOR_VERSION) \
+ --whole-archive $(LIBDL);
install -d $(TOPDIR)lib
rm -f $(TOPDIR)lib/$(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBDL_SHARED).$(MAJOR_VERSION)
install -m 644 $(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib;