4 # Compile crtbeginS.o and crtendS.o with pic.
5 CRTSTUFF_T_CFLAGS_S = -fPIC
6 # Compile libgcc2.a with pic.
7 TARGET_LIBGCC2_CFLAGS = -fPIC
8 # Build a shared libgcc library.
10 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
11 -Wl,--soname=@shlib_base_name@.so.0 \
12 -Wl,--version-script=@shlib_map_file@ \
13 -o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lc && \
14 rm -f @shlib_base_name@.so.0 && \
15 $(LN_S) @shlib_base_name@.so @shlib_base_name@.so.0
16 # $(slibdir) double quoted to protect it from expansion while building
17 # libgcc.mk. We want this delayed until actual install time.
18 SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.so $$(slibdir)/@shlib_base_name@.so.0; \
19 rm -f $$(slibdir)/@shlib_base_name@.so; \
20 $(LN_S) @shlib_base_name@.so.0 $$(slibdir)/@shlib_base_name@.so
21 SHLIB_MKMAP = $(srcdir)/mkmap-symver.awk
22 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/libgcc-glibc.ver
24 # Do not build libgcc1. Let gcc generate those functions. The GNU/Linux
25 # C library can handle them.