OSDN Git Service

Shared library support.
[pf3gnuchains/gcc-fork.git] / gcc / config / sparc / t-sol2
index 9f79b1f..1160c87 100644 (file)
@@ -16,3 +16,11 @@ crti.o: $(srcdir)/config/sparc/sol2-ci.asm
        $(AS) -o crti.o $(srcdir)/config/sparc/sol2-ci.asm
 crtn.o: $(srcdir)/config/sparc/sol2-cn.asm
        $(AS) -o crtn.o $(srcdir)/config/sparc/sol2-cn.asm
+
+# We need to use -fpic when we are using gcc to compile the routines in
+# crtstuff.c.  This is only really needed when we are going to use gcc/g++
+# to produce a shared library, but since we don't know ahead of time when
+# we will be doing that, we just always use -fpic when compiling the
+# routines in crtstuff.c.
+
+CRTSTUFF_T_CFLAGS = -fpic