crtfooS makefile patch
Richard Henderson
rth@cygnus.com
Wed Feb 16 22:12:00 GMT 2000
We can override crtbegin/crtend, but we can't currently
override crtbeginS/crtendS.
r~
* Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/Makefile.in,v
retrieving revision 1.387
diff -c -p -d -r1.387 Makefile.in
*** Makefile.in 2000/02/16 16:22:45 1.387
--- Makefile.in 2000/02/17 06:09:34
*************** STAGESTUFF = *$(objext) insn-flags.h ins
*** 692,698 ****
insn-attr.h insn-attrtab.c insn-opinit.c tree-check.h \
s-flags s-config s-codes s-mlib s-unders s-genrtl \
s-output s-recog s-emit s-extract s-peep s-check \
! s-attr s-attrtab s-opinit s-crt s-crtS s-crt0 \
genemit$(build_exeext) genoutput$(build_exeext) genrecog$(build_exeext) \
genextract$(build_exeext) genflags$(build_exeext) gencodes$(build_exeext) \
genconfig$(build_exeext) genpeep$(build_exeext) genattrtab$(build_exeext) \
--- 692,698 ----
insn-attr.h insn-attrtab.c insn-opinit.c tree-check.h \
s-flags s-config s-codes s-mlib s-unders s-genrtl \
s-output s-recog s-emit s-extract s-peep s-check \
! s-attr s-attrtab s-opinit s-crt s-$(T)crtS s-crt0 \
genemit$(build_exeext) genoutput$(build_exeext) genrecog$(build_exeext) \
genextract$(build_exeext) genflags$(build_exeext) gencodes$(build_exeext) \
genconfig$(build_exeext) genpeep$(build_exeext) genattrtab$(build_exeext) \
*************** $(T)crtend.o: crtstuff.c $(GCC_PASSES) $
*** 1291,1310 ****
# On some systems we also want to install versions of these files
# compiled using PIC for use in shared libraries.
! crtbeginS.o crtendS.o: s-crtS ; @true
! s-crtS: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \
defaults.h frame.h gbl-ctors.h stmp-int-hdrs tsystem.h
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS_S) \
-DCRT_BEGIN -DCRTSTUFFS_O -finhibit-size-directive \
-fno-inline-functions -fno-exceptions @inhibit_libc@ -g0 \
! -c $(srcdir)/crtstuff.c
! mv crtstuff$(objext) crtbeginS$(objext)
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS_S) \
-DCRT_END -DCRTSTUFFS_O -finhibit-size-directive \
-fno-inline-functions -fno-exceptions @inhibit_libc@ -g0 \
! -c $(srcdir)/crtstuff.c -o crtendS$(objext)
! touch s-crtS
# Compile the start modules crt0.o and mcrt0.o that are linked with every program
crt0.o: s-crt0 ; @true
--- 1291,1309 ----
# On some systems we also want to install versions of these files
# compiled using PIC for use in shared libraries.
! $(T)crtbeginS.o $(T)crtendS.o: s-$(T)crtS ; @true
! s-$(T)crtS: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \
defaults.h frame.h gbl-ctors.h stmp-int-hdrs tsystem.h
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS_S) \
-DCRT_BEGIN -DCRTSTUFFS_O -finhibit-size-directive \
-fno-inline-functions -fno-exceptions @inhibit_libc@ -g0 \
! -c $(srcdir)/crtstuff.c -o $(T)crtbeginS$(objext)
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS_S) \
-DCRT_END -DCRTSTUFFS_O -finhibit-size-directive \
-fno-inline-functions -fno-exceptions @inhibit_libc@ -g0 \
! -c $(srcdir)/crtstuff.c -o $(T)crtendS$(objext)
! touch s-$(T)crtS
# Compile the start modules crt0.o and mcrt0.o that are linked with every program
crt0.o: s-crt0 ; @true
More information about the Gcc-patches
mailing list