1 # Build a shared libgcc library for ELF with symbol versioning
5 SHLIB_SOLINK = @shlib_base_name@.so
7 SHLIB_SONAME = @shlib_so_name@.so.$(SHLIB_SOVERSION)
8 SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.$(SHLIB_SOVERSION)
9 SHLIB_MAP = @shlib_map_file@
10 SHLIB_OBJS = @shlib_objs@
11 SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
14 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
15 -Wl,--soname=$(SHLIB_SONAME) \
16 -Wl,--version-script=$(SHLIB_MAP) \
17 -o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) $(SHLIB_LC) && \
18 rm -f $(SHLIB_SOLINK) && \
19 $(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK)
20 # $(slibdir) double quoted to protect it from expansion while building
21 # libgcc.mk. We want this delayed until actual install time.
23 $$(SHELL) $$(srcdir)/mkinstalldirs $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
24 $(INSTALL_DATA) $(SHLIB_NAME) \
25 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
26 rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
27 $(LN_S) $(SHLIB_SONAME) \
28 $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
29 SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
30 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver