t-sol2 revision 52284
150397Sobrien# we need to supply our own assembly versions of libgcc1.c files, 250397Sobrien# since the user may not have native 'cc' available 350397Sobrien 450397SobrienLIBGCC1 = 550397SobrienCROSS_LIBGCC1 = 650397SobrienLIBGCC1_TEST = 750397Sobrien 850397Sobrien# gmon build rule: 952284Sobrien$(T)gmon.o: $(srcdir)/config/sparc/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H) stmp-int-hdrs 1052284Sobrien $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \ 1152284Sobrien -c $(srcdir)/config/sparc/gmon-sol2.c -o $(T)gmon.o 1250397Sobrien 1350397Sobrien# Assemble startup files. 1452284Sobrien$(T)crt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES) 1552284Sobrien $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm 1652284Sobrien$(T)crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES) 1752284Sobrien $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-ci.asm 1852284Sobrien$(T)crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES) 1952284Sobrien $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-cn.asm 2052284Sobrien$(T)gcrt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES) 2152284Sobrien $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -DGCRT1 -o $(T)gcrt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm 2250397Sobrien 2350397Sobrien# We need to use -fPIC when we are using gcc to compile the routines in 2450397Sobrien# crtstuff.c. This is only really needed when we are going to use gcc/g++ 2550397Sobrien# to produce a shared library, but since we don't know ahead of time when 2650397Sobrien# we will be doing that, we just always use -fPIC when compiling the 2750397Sobrien# routines in crtstuff.c. 2850397Sobrien 2950397SobrienCRTSTUFF_T_CFLAGS = -fPIC 3050397SobrienTARGET_LIBGCC2_CFLAGS = -fPIC 31