* system.h (ENCODE_SECTION_INFO): Poison it.
[official-gcc.git] / gcc / config / t-slibgcc-elf-ver
blobc02ff9d6b7c7acfd4f55596929ecfd34f5745cac
1 # Build a shared libgcc library for ELF with symbol versioning
2 # with the GNU linker.
4 SHLIB_EXT = .so
5 SHLIB_SOLINK = @shlib_base_name@.so
6 SHLIB_SONAME = @shlib_so_name@.so.1
7 SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.1
8 SHLIB_MAP = @shlib_map_file@
9 SHLIB_OBJS = @shlib_objs@
10 SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
11 SHLIB_LC = -lc
13 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
14         -Wl,--soname=$(SHLIB_SONAME) \
15         -Wl,--version-script=$(SHLIB_MAP) \
16         -o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) $(SHLIB_LC) && \
17         rm -f $(SHLIB_SOLINK) && \
18         $(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK)
19 # $(slibdir) double quoted to protect it from expansion while building
20 # libgcc.mk.  We want this delayed until actual install time.
21 SHLIB_INSTALL = \
22         $$(SHELL) $$(srcdir)/mkinstalldirs $$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
23         $(INSTALL_DATA) $(SHLIB_NAME) \
24           $$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
25         rm -f $$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
26         $(LN_S) $(SHLIB_SONAME) \
27           $$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
28 SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
29 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver