* c-common.c (catenate_strings): New.
[official-gcc.git] / gcc / config / mips / t-slibgcc-irix
blob843ecd79e2b3b9b184ba0b5e69722f27ba614370
1 # Build a shared libgcc library.
3 SHLIB_EXT = .so
4 SHLIB_SOLINK = @shlib_base_name@.so
5 SHLIB_SOVERSION = 1
6 SHLIB_SONAME = @shlib_so_name@.so.$(SHLIB_SOVERSION)
7 SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.$(SHLIB_SOVERSION)
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         -o $(SHLIB_NAME).tmp @multilib_flags@ $(SHLIB_OBJS) $(SHLIB_LC) && \
16         rm -f $(SHLIB_SOLINK) && \
17         if [ -f $(SHLIB_NAME) ]; then \
18           mv -f $(SHLIB_NAME) $(SHLIB_NAME).`basename $(STAGE_PREFIX)`; \
19         else true; fi && \
20         mv $(SHLIB_NAME).tmp $(SHLIB_NAME) && \
21         $(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK)
22 # $(slibdir) double quoted to protect it from expansion while building
23 # libgcc.mk.  We want this delayed until actual install time.
24 SHLIB_INSTALL = \
25         $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
26         $(INSTALL_DATA) $(SHLIB_NAME) \
27           $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
28         rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
29         $(LN_S) $(SHLIB_SONAME) \
30           $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
31 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
32 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver