diff options
Diffstat (limited to 'gcc/config/rs6000/t-linux64')
-rw-r--r-- | gcc/config/rs6000/t-linux64 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/rs6000/t-linux64 b/gcc/config/rs6000/t-linux64 index 0e86f5f26ff..e8389a0d995 100644 --- a/gcc/config/rs6000/t-linux64 +++ b/gcc/config/rs6000/t-linux64 @@ -37,5 +37,9 @@ fp-bit32.c: $(srcdir)/config/fp-bit.c mklibgcc: bispecs bispecs: specs - sed -e '/cc1_options/{ n; s/$$/ %{!m32:-mlong-double-128}/; }' < specs > $@ + if [ x`$(GCC_FOR_TARGET) -print-multi-os-directory` = x../lib ]; then \ + sed -e '/cc1_options/{ n; s/$$/ %{m64:-mlong-double-128}/; }' < specs > $@; \ + else \ + sed -e '/cc1_options/{ n; s/$$/ %{!m32:-mlong-double-128}/; }' < specs > $@; \ + fi |