OSDN Git Service

Append to HOST_LIBGCC2_CFLAGS in libgcc
[pf3gnuchains/gcc-fork.git] / libgcc / config / m32r / t-m32r
1 # Turn off the SDA while compiling libgcc2.  There are no headers for it
2 # and we want maximal upward compatibility here.
3 HOST_LIBGCC2_CFLAGS += -G 0
4
5 # We need to use -fpic when we are using gcc to compile the routines in
6 # initfini.c.  This is only really needed when we are going to use gcc/g++
7 # to produce a shared library, but since we don't know ahead of time when
8 # we will be doing that, we just always use -fpic when compiling the
9 # routines in initfini.c.
10 # -fpic currently isn't supported for the m32r.
11 # FIXME: No longer true.  Empty CRTSTUFF_T_CFLAGS is the default.
12 CRTSTUFF_T_CFLAGS =
13
14 # .init/.fini section routines
15 crtinit.o: $(srcdir)/config/m32r/initfini.c
16         $(crt_compile) $(CRTSTUFF_T_CFLAGS) -DCRT_INIT \
17         -finhibit-size-directive -fno-inline-functions -g0 \
18         -mmodel=medium -c $<
19
20 crtfini.o: $(srcdir)/config/m32r/initfini.c
21         $(crt_compile) $(CRTSTUFF_T_CFLAGS) -DCRT_FINI \
22         -finhibit-size-directive -fno-inline-functions -g0 \
23         -mmodel=medium -c $<