summaryrefslogtreecommitdiff
path: root/libm
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-18 08:45:53 (GMT)
committerEric Andersen <andersen@codepoet.org>2002-02-18 08:45:53 (GMT)
commitc35cde1edbe9d3375ed880fe8bb7d0fffba2f000 (patch)
tree8eb890508a7c6f00aeaa035dbb23a687e0a4cae4 /libm
parent5305b3df0ac3b6970947180fa9b2fcad0b6e6364 (diff)
Make shared libs properly list the correct ld.so in the interp
field by being sneaky.
Diffstat (limited to 'libm')
-rw-r--r--libm/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/libm/Makefile b/libm/Makefile
index 3cd82d6..e9cdf47 100644
--- a/libm/Makefile
+++ b/libm/Makefile
@@ -94,8 +94,9 @@ shared: all
@if [ -f $(LIBM) ] ; then \
set -x -e; \
$(LD) $(LDFLAGS) -soname=$(LIBM_SHARED).$(MAJOR_VERSION) \
- -o $(LIBM_SHARED_FULLNAME) --whole-archive $(LIBM) \
- --no-whole-archive -L$(TOPDIR)/lib -lc; \
+ -o $(LIBM_SHARED_FULLNAME) --whole-archive $(LIBM) \
+ --no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
+ -L$(TOPDIR)/lib -lc; \
install -d $(TOPDIR)lib; \
rm -f $(TOPDIR)lib/$(LIBM_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBM_SHARED).$(MAJOR_VERSION); \
install -m 644 $(LIBM_SHARED_FULLNAME) $(TOPDIR)lib; \