summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-17 03:41:34 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-17 03:41:34 +0000
commit265ede2a16643facef3e6abc6d9169abc76ad8dd (patch)
tree7e14e533d82901c7782c03e5d92729349719c633
parent1bdf7624dc0da3bf3707dfdd270df9badd41ee5b (diff)
(build-shlib): Also create symlink if library is versioned.
-rw-r--r--Makerules8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makerules b/Makerules
index 5c3d1295cb..6491af68e5 100644
--- a/Makerules
+++ b/Makerules
@@ -339,6 +339,8 @@ $(LINK.o) -shared -o $@ $(sysdep-LDFLAGS) $(config-LDFLAGS) \
-L$(subst :, -L,$(rpath-link)) -Wl,-rpath-link=$(rpath-link) \
-Wl,--whole-archive $^ $(no-whole-archive) \
$(LDLIBS-$(@F:lib%.so=%).so)
+ test -z "$($(@F)-version)" || \
+ (rm -f $@$($(@F)-version); $(LN_S) $(@F) $@$($(@F)-version))
endef
# Don't try to use -lc when making libc.so itself.
@@ -354,12 +356,6 @@ $(common-objpfx)libc.so: $(elfobjdir)/soinit.so \
$(common-objpfx)libc_pic.a \
$(elfobjdir)/sofini.so $(elfobjdir)/ld.so
$(build-shlib)
-
-ifdef libc.so-version
-$(common-objpfx)libc.so$(libc.so-version): $(common-objpfx)libc.so
- rm -f $@
- ln -s $(<F) $@ || ln $< $@
-endif
endif
# Some files must not be compiled with the exception handler mechanism