]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/sparc/t-sol2
configure.in (enable-shared): New.
[thirdparty/gcc.git] / gcc / config / sparc / t-sol2
1 # we need to supply our own assembly versions of libgcc1.c files,
2 # since the user may not have native 'cc' available
3
4 LIBGCC1 =
5 CROSS_LIBGCC1 =
6 LIBGCC1_TEST =
7
8 # gmon build rule:
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
12
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
22
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.
28
29 CRTSTUFF_T_CFLAGS = -fPIC
30 TARGET_LIBGCC2_CFLAGS = -fPIC
31
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
35 SHLIB_LIBS = -lc