aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/t-svr4
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1994-11-19 04:09:58 +0000
committerJason Merrill <merrill@gnu.org>1994-11-19 04:09:58 +0000
commit68d69835acdbeb2a30bb3338013e55afda1aca4d (patch)
treece0413f36fa899efe1a55c1519059e52060d600b /gcc/config/t-svr4
parent822ef9dfdac2e3cff805baccbff3937cf3f468cb (diff)
downloadgcc-68d69835acdbeb2a30bb3338013e55afda1aca4d.zip
gcc-68d69835acdbeb2a30bb3338013e55afda1aca4d.tar.gz
gcc-68d69835acdbeb2a30bb3338013e55afda1aca4d.tar.bz2
Shared library support.
From-SVN: r8519
Diffstat (limited to 'gcc/config/t-svr4')
-rw-r--r--gcc/config/t-svr48
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/t-svr4 b/gcc/config/t-svr4
index 9560d90..f060a9d 100644
--- a/gcc/config/t-svr4
+++ b/gcc/config/t-svr4
@@ -2,3 +2,11 @@
# end labels to the .ctors and .dtors section when we link using gcc.
EXTRA_PARTS=crtbegin.o crtend.o
+
+# 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