aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/config/i386/t-crtpic
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/config/i386/t-crtpic')
-rw-r--r--contrib/gcc/config/i386/t-crtpic9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/gcc/config/i386/t-crtpic b/contrib/gcc/config/i386/t-crtpic
new file mode 100644
index 000000000000..f5dd073a664e
--- /dev/null
+++ b/contrib/gcc/config/i386/t-crtpic
@@ -0,0 +1,9 @@
+# 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