1 # Build a shared libgcc library.
4 SHLIB_SOLINK = @shlib_base_name@.so
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@
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)`; \
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.
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