1 1.1 mrg # gmon build rule: 2 1.1 mrg $(T)gmon.o: $(gcc_srcdir)/config/i386/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H) 3 1.1 mrg $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CFLAGS) \ 4 1.1 mrg -c $(gcc_srcdir)/config/i386/gmon-sol2.c -o $(T)gmon.o 5 1.1 mrg 6 1.1 mrg # Assemble startup files. 7 1.1 mrg # Apparently Sun believes that assembler files don't need comments, because no 8 1.1 mrg # single ASCII character is valid (tried them all). So we manually strip out 9 1.1 mrg # the comments with sed. This bug may only be in the Early Access releases. 10 1.1 mrg $(T)gcrt1.o: $(gcc_srcdir)/config/i386/sol2-gc1.asm $(GCC_PASSES) 11 1.1 mrg sed -e '/^!/d' <$(gcc_srcdir)/config/i386/sol2-gc1.asm >gcrt1.s 12 1.1 mrg $(GCC_FOR_TARGET) $(CFLAGS) -c -o $(T)gcrt1.o gcrt1.s 13 1.1 mrg $(T)crt1.o: $(gcc_srcdir)/config/i386/sol2-c1.asm $(GCC_PASSES) 14 1.1 mrg sed -e '/^!/d' <$(gcc_srcdir)/config/i386/sol2-c1.asm >crt1.s 15 1.1 mrg $(GCC_FOR_TARGET) $(CFLAGS) -c -o $(T)crt1.o crt1.s 16 1.1 mrg $(T)crti.o: $(gcc_srcdir)/config/i386/sol2-ci.asm $(GCC_PASSES) 17 1.1 mrg sed -e '/^!/d' <$(gcc_srcdir)/config/i386/sol2-ci.asm >crti.s 18 1.1 mrg $(GCC_FOR_TARGET) $(CFLAGS) -c -o $(T)crti.o crti.s 19 1.1 mrg $(T)crtn.o: $(gcc_srcdir)/config/i386/sol2-cn.asm $(GCC_PASSES) 20 1.1 mrg sed -e '/^!/d' <$(gcc_srcdir)/config/i386/sol2-cn.asm >crtn.s 21 1.1 mrg $(GCC_FOR_TARGET) $(CFLAGS) -c -o $(T)crtn.o crtn.s 22 1.1 mrg 23 1.1 mrg # We need to use -fPIC when we are using gcc to compile the routines in 24 1.1 mrg # crtstuff.c. This is only really needed when we are going to use gcc/g++ 25 1.1 mrg # to produce a shared library, but since we don't know ahead of time when 26 1.1 mrg # we will be doing that, we just always use -fPIC when compiling the 27 1.1 mrg # routines in crtstuff.c. 28 1.1 mrg # 29 1.1 mrg # We must also enable optimization to avoid having any code appear after 30 1.1 mrg # the call & alignment statement, but before we switch back to the 31 1.1 mrg # .text section. 32 1.1 mrg 33 1.1 mrg CRTSTUFF_T_CFLAGS = -fPIC -O2 34 1.1 mrg TARGET_LIBGCC2_CFLAGS = -fPIC 35 1.1 mrg 36 1.1 mrg # Add support for the introduction of 128-bit long double. 37 1.1 mrg SHLIB_MAPFILES += $(srcdir)/config/i386/libgcc-sol2.ver 38