diff options
author | simonmar <unknown> | 2005-01-10 11:45:24 +0000 |
---|---|---|
committer | simonmar <unknown> | 2005-01-10 11:45:24 +0000 |
commit | f13895fc3b7a38c909ee0d2d7c1de24381858024 (patch) | |
tree | 818a7fb92c8ec21350ec5644ea5dfb75efdfec2b /aclocal.m4 | |
parent | d27af86534166ba4eea5d23768a1d01c431977f1 (diff) | |
download | haskell-f13895fc3b7a38c909ee0d2d7c1de24381858024.tar.gz |
[project @ 2005-01-10 11:45:19 by simonmar]
Work around problems caused by limit on the length of the command line
in ld, which shows up when building OpenGL on Windows with SplitObjs=YES.
We now pass the names of the input files to ld via a linker script.
This is (probably) only supported by GNU ld, so we now have to detect
GNU ld in the configure script (yawn) and back off to the old method
if we don't have it.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index a615c555dd..34542f2553 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -353,6 +353,26 @@ fi AC_SUBST(LdXFlag) ]) +dnl +dnl Check for GNU ld +dnl +AC_DEFUN(FPTOOLS_GNU_LD, +[AC_CACHE_CHECK([whether ld is GNU ld], fptools_cv_gnu_ld, +[ +if ${LdCmd} -v | grep GNU 2>&1 >/dev/null; then + fptools_cv_gnu_ld=yes +else + fptools_cv_gnu_ld=no +fi +]) +if test "$fptools_cv_gnu_ld" = yes; then + LdIsGNULd=YES +else + LdIsGNULd=NO +fi +AC_SUBST(LdIsGNULd) +]) + # FP_PROG_AR # ---------- |