t-slibgcc-elf-ver revision 146895
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) \ 17146895Skan -o $(SHLIB_NAME).tmp @multilib_flags@ $(SHLIB_OBJS) $(SHLIB_LC) && \ 1896263Sobrien rm -f $(SHLIB_SOLINK) && \ 19146895Skan if [ -f $(SHLIB_NAME) ]; then \ 20146895Skan mv -f $(SHLIB_NAME) $(SHLIB_NAME).backup; \ 21146895Skan else true; fi && \ 22146895Skan mv $(SHLIB_NAME).tmp $(SHLIB_NAME) && \ 2396263Sobrien $(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK) 2490075Sobrien# $(slibdir) double quoted to protect it from expansion while building 2590075Sobrien# libgcc.mk. We want this delayed until actual install time. 2696263SobrienSHLIB_INSTALL = \ 27110611Skan $$(SHELL) $$(srcdir)/mkinstalldirs $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \ 2896263Sobrien $(INSTALL_DATA) $(SHLIB_NAME) \ 29110611Skan $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \ 30110611Skan rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \ 3196263Sobrien $(LN_S) $(SHLIB_SONAME) \ 32110611Skan $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) 3390075SobrienSHLIB_MKMAP = $(srcdir)/mkmap-symver.awk 3490075SobrienSHLIB_MAPFILES = $(srcdir)/libgcc-std.ver 35