t-slibgcc-elf-ver revision 132718
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 6132718SkanSHLIB_SOVERSION = 1 7132718SkanSHLIB_SONAME = @shlib_so_name@.so.$(SHLIB_SOVERSION) 8132718SkanSHLIB_NAME = @shlib_dir@@shlib_so_name@.so.$(SHLIB_SOVERSION) 990075SobrienSHLIB_MAP = @shlib_map_file@ 1090075SobrienSHLIB_OBJS = @shlib_objs@ 1196263SobrienSHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ 1296263SobrienSHLIB_LC = -lc 1390075Sobrien 1490075SobrienSHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ 1590075Sobrien -Wl,--soname=$(SHLIB_SONAME) \ 1690075Sobrien -Wl,--version-script=$(SHLIB_MAP) \ 1796263Sobrien -o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) $(SHLIB_LC) && \ 1896263Sobrien rm -f $(SHLIB_SOLINK) && \ 1996263Sobrien $(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK) 2090075Sobrien# $(slibdir) double quoted to protect it from expansion while building 2190075Sobrien# libgcc.mk. We want this delayed until actual install time. 2296263SobrienSHLIB_INSTALL = \ 23110611Skan $$(SHELL) $$(srcdir)/mkinstalldirs $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \ 2496263Sobrien $(INSTALL_DATA) $(SHLIB_NAME) \ 25110611Skan $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \ 26110611Skan rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \ 2796263Sobrien $(LN_S) $(SHLIB_SONAME) \ 28110611Skan $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) 2990075SobrienSHLIB_MKMAP = $(srcdir)/mkmap-symver.awk 3090075SobrienSHLIB_MAPFILES = $(srcdir)/libgcc-std.ver 31