t-slibgcc-elf-ver revision 146895
1# Build a shared libgcc library for ELF with symbol versioning 2# with the GNU linker. 3 4SHLIB_EXT = .so 5SHLIB_SOLINK = @shlib_base_name@.so 6SHLIB_SOVERSION = 1 7SHLIB_SONAME = @shlib_so_name@.so.$(SHLIB_SOVERSION) 8SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.$(SHLIB_SOVERSION) 9SHLIB_MAP = @shlib_map_file@ 10SHLIB_OBJS = @shlib_objs@ 11SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ 12SHLIB_LC = -lc 13 14SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ 15 -Wl,--soname=$(SHLIB_SONAME) \ 16 -Wl,--version-script=$(SHLIB_MAP) \ 17 -o $(SHLIB_NAME).tmp @multilib_flags@ $(SHLIB_OBJS) $(SHLIB_LC) && \ 18 rm -f $(SHLIB_SOLINK) && \ 19 if [ -f $(SHLIB_NAME) ]; then \ 20 mv -f $(SHLIB_NAME) $(SHLIB_NAME).backup; \ 21 else true; fi && \ 22 mv $(SHLIB_NAME).tmp $(SHLIB_NAME) && \ 23 $(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK) 24# $(slibdir) double quoted to protect it from expansion while building 25# libgcc.mk. We want this delayed until actual install time. 26SHLIB_INSTALL = \ 27 $$(SHELL) $$(srcdir)/mkinstalldirs $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \ 28 $(INSTALL_DATA) $(SHLIB_NAME) \ 29 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \ 30 rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \ 31 $(LN_S) $(SHLIB_SONAME) \ 32 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) 33SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk 34SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver 35