summaryrefslogtreecommitdiff
path: root/gcc/config/i386/t-crtpic
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386/t-crtpic')
-rw-r--r--gcc/config/i386/t-crtpic10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/config/i386/t-crtpic b/gcc/config/i386/t-crtpic
new file mode 100644
index 000000000..ff81a9bef
--- /dev/null
+++ b/gcc/config/i386/t-crtpic
@@ -0,0 +1,10 @@
+# The pushl in CTOR initialization interferes with frame pointer elimination.
+
+# 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 -fno-omit-frame-pointer
+TARGET_LIBGCC2_CFLAGS = -fPIC