diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-25 23:08:57 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-25 23:08:57 +0000 |
commit | 32e8a7fc2f0f42b45c1dae60cdb235b63effa972 (patch) | |
tree | 8530c383af7c77aec7c70cd3ec9b6efb3b02c867 /gcc/config/t-slibgcc-elf-ver | |
parent | 87d5654db5bf0f10bdd8003c801069f675940023 (diff) | |
download | gcc-32e8a7fc2f0f42b45c1dae60cdb235b63effa972.tar.gz |
* config.gcc (all gnu and linux): Use t-slibgcc-elf-ver with t-linux.
(i386-*-solaris2): Use t-slibgcc-elf-ver or t-slibgcc-sld.
(sparc*-*-solaris2): Likewise.
* config/t-linux: Remove shared libgcc macros.
* config/t-slibgcc-elf-ver: Move from sparc/t-slibgcc.
* config/t-slibgcc-sld: Move from sparc/t-slibgcc-sld.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42602 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/t-slibgcc-elf-ver')
-rw-r--r-- | gcc/config/t-slibgcc-elf-ver | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/config/t-slibgcc-elf-ver b/gcc/config/t-slibgcc-elf-ver new file mode 100644 index 00000000000..88506d9e325 --- /dev/null +++ b/gcc/config/t-slibgcc-elf-ver @@ -0,0 +1,17 @@ +# Build a shared libgcc library for ELF with symbol versioning +# with the GNU linker. + +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 && \ + rm -f @shlib_base_name@.so.0 && \ + $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.0 +# $(slibdir) double quoted to protect it from expansion while building +# libgcc.mk. We want this delayed until actual install time. +SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(slibdir)/@shlib_base_name@.so.0; \ + rm -f $$(slibdir)/@shlib_base_name@.so; \ + $(LN_S) @shlib_base_name@.so.0 $$(slibdir)/@shlib_base_name@.so +SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk +SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver |