t-slibgcc-elf-ver revision 96263
190075Sobrien# Build a shared libgcc library for ELF with symbol versioning 290075Sobrien# with the GNU linker. 390075Sobrien 490075SobrienSHLIB_EXT = .so 596263SobrienSHLIB_SOLINK = @shlib_base_name@.so 696263SobrienSHLIB_SONAME = @shlib_so_name@.so.1 796263SobrienSHLIB_NAME = @shlib_dir@@shlib_so_name@.so.1 890075SobrienSHLIB_MAP = @shlib_map_file@ 990075SobrienSHLIB_OBJS = @shlib_objs@ 1096263SobrienSHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ 1196263SobrienSHLIB_LC = -lc 1290075Sobrien 1390075SobrienSHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ 1490075Sobrien -Wl,--soname=$(SHLIB_SONAME) \ 1590075Sobrien -Wl,--version-script=$(SHLIB_MAP) \ 1696263Sobrien -o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) $(SHLIB_LC) && \ 1796263Sobrien rm -f $(SHLIB_SOLINK) && \ 1896263Sobrien $(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK) 1990075Sobrien# $(slibdir) double quoted to protect it from expansion while building 2090075Sobrien# libgcc.mk. We want this delayed until actual install time. 2196263SobrienSHLIB_INSTALL = \ 2296263Sobrien $$(SHELL) $$(srcdir)/mkinstalldirs $$(slibdir)$(SHLIB_SLIBDIR_QUAL); \ 2396263Sobrien $(INSTALL_DATA) $(SHLIB_NAME) \ 2496263Sobrien $$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \ 2596263Sobrien rm -f $$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \ 2696263Sobrien $(LN_S) $(SHLIB_SONAME) \ 2796263Sobrien $$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) 2890075SobrienSHLIB_MKMAP = $(srcdir)/mkmap-symver.awk 2990075SobrienSHLIB_MAPFILES = $(srcdir)/libgcc-std.ver 30