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