diff options
author | Roland McGrath <roland@gcc.gnu.org> | 1995-07-26 12:18:04 +0000 |
---|---|---|
committer | Roland McGrath <roland@gcc.gnu.org> | 1995-07-26 12:18:04 +0000 |
commit | 32988c4a989e6ebf0068eca9d890c3041baa7f3b (patch) | |
tree | 52e15412e1f559e37c37d0468f4efcbcf611ad92 /gcc | |
parent | 480ae58f31f44c7369688344e15286cf3a187075 (diff) | |
download | gcc-32988c4a989e6ebf0068eca9d890c3041baa7f3b.zip gcc-32988c4a989e6ebf0068eca9d890c3041baa7f3b.tar.gz gcc-32988c4a989e6ebf0068eca9d890c3041baa7f3b.tar.bz2 |
(STAGESTUFF): Add stamp-crtS.
(crtbeginS.o, crtendS.o, stamp-crtS): New rules; just like crtbegin.o et
al, but compiled using -fPIC.
From-SVN: r10160
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/Makefile.in | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 7d925de..742775d 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -514,7 +514,7 @@ STAGESTUFF = *$(objext) insn-flags.h insn-config.h insn-codes.h \ insn-attr.h insn-attrtab.c insn-opinit.c \ stamp-flags stamp-config stamp-codes \ stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \ - stamp-attr stamp-attrtab stamp-opinit stamp-proto stamp-crt \ + stamp-attr stamp-attrtab stamp-opinit stamp-proto stamp-crt stamp-crtS \ genemit$(exeext) genoutput$(exeext) genrecog$(exeext) genextract$(exeext) \ genflags$(exeext) gencodes$(exeext) genconfig$(exeext) genpeep$(exeext) \ genattrtab$(exeext) genattr$(exeext) genopinit$(exeext) \ @@ -999,7 +999,8 @@ sublibobjc.a: cc1obj stmp-int-hdrs libgcc2.ready GCC_CFLAGS="$(GCC_CFLAGS)" # Compile two additional files that are linked with every program -# linked using GCC on system V, for the sake of C++ constructors. +# linked using GCC on systems using COFF or ELF, for the sake of C++ +# constructors. crtbegin.o: stamp-crt ; @true crtend.o: stamp-crt; @true @@ -1013,6 +1014,21 @@ stamp-crt: crtstuff.c $(GCC_PASSES) $(CONFIG_H) gbl-ctors.h -g0 -c $(srcdir)/crtstuff.c mv crtstuff$(objext) crtend$(objext) touch stamp-crt + +# On some systems we also want to install versions of these files +# compiled using PIC for use in shared libraries. +crtbeginS.o crtendS.o: stamp-crtS ; @true + +stamp-crtS: crtstuff.c $(GCC_PASSES) $(CONFIG_H) gbl-ctors.h + $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \ + -DCRT_BEGIN -finhibit-size-directive -fno-inline-functions \ + -g0 -c $(srcdir)/crtstuff.c -fPIC + mv crtstuff$(objext) crtbeginS$(objext) + $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \ + -DCRT_END -finhibit-size-directive -fno-inline-functions \ + -g0 -c $(srcdir)/crtstuff.c -fPIC + mv crtstuff$(objext) crtendS$(objext) + touch stamp-crtS # Compiling object files from source files. |