diff options
author | Ian Lynagh <igloo@earth.li> | 2008-06-06 13:38:17 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-06-06 13:38:17 +0000 |
commit | 089b271132212ba6679651254b11d1218a103f03 (patch) | |
tree | b43a1eb08baf5f24e3979521ebf319fd5735e1b1 /aclocal.m4 | |
parent | 89ce706af6ca2670600b510bf8be8bce0b4fe9ef (diff) | |
download | haskell-089b271132212ba6679651254b11d1218a103f03.tar.gz |
Use -fno-toplevel-reorder with gcc >= 4.2 on sparc-solaris; fixes trac #2312
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 0432ed354b..35eb79c188 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -984,6 +984,11 @@ AC_CACHE_CHECK([for extra options to pass gcc when compiling via C], [fp_cv_gcc_ )], []) ;; + sparc-*-solaris2) + FP_COMPARE_VERSIONS([$fp_gcc_version], [-ge], [4.2], + [fp_cv_gcc_extra_opts="$fp_cv_gcc_extra_opts -fno-toplevel-reorder"], + []) + ;; esac ]) AC_SUBST([GccExtraViaCOpts],$fp_cv_gcc_extra_opts) |