diff options
author | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-12-06 20:09:44 +0000 |
---|---|---|
committer | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-12-06 20:09:44 +0000 |
commit | 9efeed22386c4d5cba2a40272a84c52e8427264b (patch) | |
tree | 6086f3ca6fee66daa78730661c97e49c9b88faf5 /gcc/config/sparc/t-sol2 | |
parent | eea64d8239f25d7927523e827f5f3a554bd0a441 (diff) | |
download | gcc-9efeed22386c4d5cba2a40272a84c52e8427264b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8615 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc/t-sol2')
-rw-r--r-- | gcc/config/sparc/t-sol2 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/sparc/t-sol2 b/gcc/config/sparc/t-sol2 index 1160c879f86..2aed1fd04a2 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` |