10SN/A# we need to supply our own assembly versions of libgcc1.c files, 217372Sclanger# since the user may not have native 'cc' available 30SN/A 40SN/ALIBGCC1 = 50SN/ACROSS_LIBGCC1 = 60SN/ALIBGCC1_TEST = 72362SN/A 80SN/A# gmon build rule: 92362SN/A$(T)gmon.o: $(srcdir)/config/sparc/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H) stmp-int-hdrs 100SN/A $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \ 110SN/A -c $(srcdir)/config/sparc/gmon-sol2.c -o $(T)gmon.o 120SN/A 130SN/A# Assemble startup files. 140SN/A$(T)crt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES) 150SN/A $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm 160SN/A$(T)crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES) 170SN/A $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-ci.asm 180SN/A$(T)crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES) 190SN/A $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-cn.asm 200SN/A$(T)gcrt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES) 212362SN/A $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -DGCRT1 -o $(T)gcrt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm 222362SN/A 232362SN/A# We need to use -fPIC when we are using gcc to compile the routines in 240SN/A# crtstuff.c. This is only really needed when we are going to use gcc/g++ 250SN/A# to produce a shared library, but since we don't know ahead of time when 260SN/A# we will be doing that, we just always use -fPIC when compiling the 270SN/A# routines in crtstuff.c. 2817372Sclanger 2917372SclangerCRTSTUFF_T_CFLAGS = -fPIC 300SN/ATARGET_LIBGCC2_CFLAGS = -fPIC 310SN/A