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