Merge from mainline
[official-gcc.git] / gcc / config / arm / t-netbsd
blob7d0724cc8725ef5a68be62da86f8d04a8b7d25d7
1 # Just for these, we omit the frame pointer since it makes such a big
2 # difference.  It is then pointless adding debugging.
3 TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fpic
4 LIBGCC2_DEBUG_CFLAGS = -g0
5 LIB2FUNCS_EXTRA = $(srcdir)/config/floatunsidf.c $(srcdir)/config/floatunsisf.c
7 # Build a shared libgcc library.
8 SHLIB_EXT = .so
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,-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.
24 SHLIB_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)