aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/t-linux
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-01-07 01:27:25 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-01-07 01:27:25 -0800
commit2bbea3a6c7e33c373b99411c1e6e2f67c5358fac (patch)
tree6325810f4b727df6611567fe1ab374c2937f896f /gcc/config/t-linux
parentfc51424cc99b9a247d981b46491dd5d8b7952ef6 (diff)
downloadgcc-2bbea3a6c7e33c373b99411c1e6e2f67c5358fac.zip
gcc-2bbea3a6c7e33c373b99411c1e6e2f67c5358fac.tar.gz
gcc-2bbea3a6c7e33c373b99411c1e6e2f67c5358fac.tar.bz2
Makefile.in (slibdir): New variable.
* Makefile.in (slibdir): New variable. (libgcc.mk): Pass SHLIB_INSTALL to mklibgcc. (installdirs): Create slibdir. (install-libgcc, install-multilib): Defer to libgcc.mk. * configure.in (slibdir): Substitute. * mklibgcc.in (install): New target. * config/t-linux (SHLIB_LINK): Create links for the soname. (SHLIB_INSTALL): New. * config/alpha/t-osf4 (SHLIB_INSTALL): New. * config/mips/t-iris6 (SHLIB_INSTALL): New. * config/rs6000/t-aix43 (SHLIB_INSTALL): New. * config/sparc/t-slibgcc (SHLIB_INSTALL): New. * config/sparc/t-slibgcc-sld (SHLIB_INSTALL): New. From-SVN: r38761
Diffstat (limited to 'gcc/config/t-linux')
-rw-r--r--gcc/config/t-linux7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/t-linux b/gcc/config/t-linux
index b66cf56..9247a94 100644
--- a/gcc/config/t-linux
+++ b/gcc/config/t-linux
@@ -13,7 +13,12 @@ SHLIB_EXT = .so
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
-Wl,--soname=@shlib_base_name@.so.0 \
-Wl,--version-script=@shlib_map_file@ \
- -o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lc
+ -o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lc && \
+ rm -f @shlib_base_name@.so.0 && \
+ $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.0
+SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $(slibdir)/@shlib_base_name@.so.0; \
+ rm -f $(slibdir)/@shlib_base_name@; \
+ $(LN_S) @shlib_base_name@.so.0 $(slibdir)/@shlib_base_name@.so
SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/libgcc-glibc.ver