aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1994-12-06 20:09:44 +0000
committerJason Merrill <merrill@gnu.org>1994-12-06 20:09:44 +0000
commit5461708de74fd76f1a553e5f8a4f42cfb47bb4b2 (patch)
tree6086f3ca6fee66daa78730661c97e49c9b88faf5 /gcc
parentc5350a6ddf7faf569c08a3996de1169a8c302442 (diff)
downloadgcc-5461708de74fd76f1a553e5f8a4f42cfb47bb4b2.zip
gcc-5461708de74fd76f1a553e5f8a4f42cfb47bb4b2.tar.gz
gcc-5461708de74fd76f1a553e5f8a4f42cfb47bb4b2.tar.bz2
t-sol2 (CRTSTUFF_T_CFLAGS): Don't use PIC if cross-compiling, use the native assembler otherwise.
Mon Dec 5 19:32:48 1994 Jason Merrill <jason@phydeaux.cygnus.com> * sparc/t-sol2 (CRTSTUFF_T_CFLAGS): Don't use PIC if cross-compiling, use the native assembler otherwise. From-SVN: r8615
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/sparc/t-sol26
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/sparc/t-sol2 b/gcc/config/sparc/t-sol2
index 1160c87..2aed1fd 100644
--- a/gcc/config/sparc/t-sol2
+++ b/gcc/config/sparc/t-sol2
@@ -23,4 +23,8 @@ crtn.o: $(srcdir)/config/sparc/sol2-cn.asm
# we will be doing that, we just always use -fpic when compiling the
# routines in crtstuff.c.
-CRTSTUFF_T_CFLAGS = -fpic
+# Since the GNU assembler doesn't support PIC yet, we need to force gcc to
+# use the native assembler when building crtstuff. If we're a
+# cross-compiler, just give up on using PIC.
+
+CRTSTUFF_T_CFLAGS = `if [ -z "$(CROSS)" ]; then echo -fpic -B/usr/ccs/bin/; fi`