1 # we need to supply our own assembly versions of libgcc1.c files,
2 # since the user may not have native 'cc' available
9 $(T)gmon.o: $(srcdir)/config/sparc/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H) stmp-int-hdrs
10 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \
11 -c $(srcdir)/config/sparc/gmon-sol2.c -o $(T)gmon.o
13 # Assemble startup files.
14 $(T)crt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES)
15 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm
16 $(T)crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES)
17 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-ci.asm
18 $(T)crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES)
19 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-cn.asm
20 $(T)gcrt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES)
21 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -DGCRT1 -o $(T)gcrt1.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-c1.asm
23 # We need to use -fPIC when we are using gcc to compile the routines in
24 # crtstuff.c. This is only really needed when we are going to use gcc/g++
25 # to produce a shared library, but since we don't know ahead of time when
26 # we will be doing that, we just always use -fPIC when compiling the
27 # routines in crtstuff.c.
29 CRTSTUFF_T_CFLAGS = -fPIC
30 TARGET_LIBGCC2_CFLAGS = -fPIC
32 # Build a shared libgcc library.
33 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
34 -Wl,-h,@shlib_base_name@.so.0 -Wl,-z,text -Wl,-z,defs