t-slibgcc-elf-ver revision 169689
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_base_name@.so.$(SHLIB_SOVERSION) 8SHLIB_MAP = @shlib_map_file@ 9SHLIB_OBJS = @shlib_objs@ 10SHLIB_DIR = @multilib_dir@ 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_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \ 18 $(SHLIB_OBJS) $(SHLIB_LC) && \ 19 rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \ 20 if [ -f $(SHLIB_DIR)/$(SHLIB_SONAME) ]; then \ 21 mv -f $(SHLIB_DIR)/$(SHLIB_SONAME) \ 22 $(SHLIB_DIR)/$(SHLIB_SONAME).backup; \ 23 else true; fi && \ 24 mv $(SHLIB_DIR)/$(SHLIB_SONAME).tmp $(SHLIB_DIR)/$(SHLIB_SONAME) && \ 25 $(LN_S) $(SHLIB_SONAME) $(SHLIB_DIR)/$(SHLIB_SOLINK) 26# $(slibdir) double quoted to protect it from expansion while building 27# libgcc.mk. We want this delayed until actual install time. 28SHLIB_INSTALL = \ 29 $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \ 30 $(INSTALL_DATA) $(SHLIB_DIR)/$(SHLIB_SONAME) \ 31 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \ 32 rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \ 33 $(LN_S) $(SHLIB_SONAME) \ 34 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) 35SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk 36SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver 37