Bug 1049510 - Fix GCC_USE_GNU_LD when building with clang on linux. r=mshal

This commit is contained in:
Mike Hommey 2014-08-07 02:59:31 +09:00
parent 303e056692
commit 62416a2177

View File

@ -55,12 +55,6 @@ rm -f conftest.out
if test "`echo | $LD -v 2>&1 | grep -c GNU`" != "0"; then
GNU_LD=1
fi
if test "$GNU_CC"; then
if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
GCC_USE_GNU_LD=1
fi
fi
INTEL_CC=
INTEL_CXX=
if test "$compiler" = "icc"; then
@ -81,6 +75,12 @@ if test "$compiler" = "clang-cl"; then
CLANG_CL=1
fi
if test "$GNU_CC"; then
if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
GCC_USE_GNU_LD=1
fi
fi
AC_SUBST(CLANG_CXX)
AC_SUBST(CLANG_CL)
])