* config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
[official-gcc.git] / gcc / config / t-slibgcc-sld
blob1b21b66ea15358551038ddcbaccfea04ef3635e6
1 # Build a shared libgcc library with the Solaris linker.
3 SHLIB_EXT = .so
4 SHLIB_SOLINK = @shlib_base_name@.so
5 SHLIB_SONAME = @shlib_so_name@.so.1
6 SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.1
7 SHLIB_MAP = @shlib_map_file@
8 SHLIB_OBJS = @shlib_objs@
9 SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
11 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
12         -Wl,-h,$(SHLIB_SONAME) -Wl,-z,text -Wl,-z,defs \
13         -Wl,-M,$(SHLIB_MAP) -o $(SHLIB_NAME) \
14         @multilib_flags@ $(SHLIB_OBJS) -lc && \
15         rm -f $(SHLIB_SOLINK) && \
16         $(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK)
17 # $(slibdir) double quoted to protect it from expansion while building
18 # libgcc.mk.  We want this delayed until actual install time.
19 SHLIB_INSTALL = \
20         $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
21         $(INSTALL_DATA) $(SHLIB_NAME) \
22           $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
23         rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
24         $(LN_S) $(SHLIB_SONAME) \
25           $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
26 SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
27 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver