* c-common.c (catenate_strings): New.
[official-gcc.git] / gcc / config / t-slibgcc-sld
bloba4e5a07440b27609e9ecf97179f25b181feb8039
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).tmp \
14         @multilib_flags@ $(SHLIB_OBJS) -lc && \
15         rm -f $(SHLIB_SOLINK) && \
16         if [ -f $(SHLIB_NAME) ]; then \
17           mv -f $(SHLIB_NAME) $(SHLIB_NAME).`basename $(STAGE_PREFIX)`; \
18         else true; fi && \
19         mv $(SHLIB_NAME).tmp $(SHLIB_NAME) && \
20         $(LN_S) $(SHLIB_NAME) $(SHLIB_SOLINK)
21 # $(slibdir) double quoted to protect it from expansion while building
22 # libgcc.mk.  We want this delayed until actual install time.
23 SHLIB_INSTALL = \
24         $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
25         $(INSTALL_DATA) $(SHLIB_NAME) \
26           $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
27         rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK); \
28         $(LN_S) $(SHLIB_SONAME) \
29           $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
30 SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
31 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver