1 # Compile crtbeginS.o and crtendS.o with pic.
2 CRTSTUFF_T_CFLAGS_S = -fPIC
4 # Compile libgcc2.a with pic.
5 TARGET_LIBGCC2_CFLAGS = -fPIC
7 # Build a shared libgcc library.
9 SHLIB_NAME = @shlib_base_name@.so
10 SHLIB_SONAME = @shlib_base_name@.so.1
11 SHLIB_OBJS = @shlib_objs@
13 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
14 -Wl,-msym -Wl,-set_version,gcc.1 -Wl,-soname,$(SHLIB_SONAME) \
15 -o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) -lc && \
16 rm -f $(SHLIB_SONAME) && \
17 $(LN_S) $(SHLIB_NAME) $(SHLIB_SONAME)
18 # $(slibdir) double quoted to protect it from expansion while building
19 # libgcc.mk. We want this delayed until actual install time.
20 SHLIB_INSTALL = $(INSTALL_DATA) $(SHLIB_NAME) $$(slibdir)/$(SHLIB_SONAME); \
21 rm -f $$(slibdir)/$(SHLIB_NAME); \
22 $(LN_S) $(SHLIB_SONAME) $$(slibdir)/$(SHLIB_NAME)