diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-03-17 03:41:34 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-03-17 03:41:34 +0000 |
commit | 265ede2a16643facef3e6abc6d9169abc76ad8dd (patch) | |
tree | 7e14e533d82901c7782c03e5d92729349719c633 | |
parent | 1bdf7624dc0da3bf3707dfdd270df9badd41ee5b (diff) | |
download | glibc-265ede2a16643facef3e6abc6d9169abc76ad8dd.tar.gz |
(build-shlib): Also create symlink if library is versioned.
-rw-r--r-- | Makerules | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |