1# Just for these, we omit the frame pointer since it makes such a big 2# difference. It is then pointless adding debugging. 3TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fpic 4LIBGCC2_DEBUG_CFLAGS = -g0 5LIB2FUNCS_EXTRA = $(srcdir)/config/floatunsidf.c $(srcdir)/config/floatunsisf.c 6 7# Build a shared libgcc library. 8SHLIB_EXT = .so 9SHLIB_NAME = @shlib_base_name@.so 10SHLIB_SONAME = @shlib_base_name@.so.1 11SHLIB_OBJS = @shlib_objs@ 12 13SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ 14 -Wl,-soname,$(SHLIB_SONAME) \ 15 -o $(SHLIB_NAME).tmp @multilib_flags@ $(SHLIB_OBJS) -lc && \ 16 rm -f $(SHLIB_SONAME) && \ 17 if [ -f $(SHLIB_NAME) ]; then \ 18 mv -f $(SHLIB_NAME) $(SHLIB_NAME).backup; \ 19 else true; fi && \ 20 mv $(SHLIB_NAME).tmp $(SHLIB_NAME) && \ 21 $(LN_S) $(SHLIB_NAME) $(SHLIB_SONAME) 22# $(slibdir) double quoted to protect it from expansion while building 23# libgcc.mk. We want this delayed until actual install time. 24SHLIB_INSTALL = \ 25 $$(mkinstalldirs) $$(DESTDIR)$$(slibdir); \ 26 $(INSTALL_DATA) $(SHLIB_NAME) $$(DESTDIR)$$(slibdir)/$(SHLIB_SONAME); \ 27 rm -f $$(DESTDIR)$$(slibdir)/$(SHLIB_NAME); \ 28 $(LN_S) $(SHLIB_SONAME) $$(DESTDIR)$$(slibdir)/$(SHLIB_NAME) 29