66dbcf2d4d
libgfortran: * configure.ac: Call GCC_CHECK_LINKER_HWCAP. * Makefile.am (libgfortran_la_LDFLAGS): Add HWCAP_LDFLAGS. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. config: * hwcaps.m4: New file. libitm: * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove. * aclocal.m4: Regenerate. * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of LIBITM_CHECK_LINKER_HWCAP. From-SVN: r243552
29 lines
789 B
Plaintext
29 lines
789 B
Plaintext
dnl
|
|
dnl Check if the linker used supports linker maps to clear hardware
|
|
dnl capabilities. This is only supported on Solaris at the moment.
|
|
dnl
|
|
dnl Defines:
|
|
dnl HWCAP_LDFLAGS=-mclear-hwcap if possible
|
|
dnl LD (as a side effect of testing)
|
|
dnl
|
|
AC_DEFUN([GCC_CHECK_LINKER_HWCAP], [
|
|
test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
|
|
AC_REQUIRE([AC_PROG_LD])
|
|
|
|
ac_save_LDFLAGS="$LDFLAGS"
|
|
LDFLAGS="$LFLAGS -mclear-hwcap"
|
|
|
|
AC_MSG_CHECKING([for -mclear-hwcap])
|
|
AC_TRY_LINK([], [return 0;], [ac_hwcap_ldflags=yes],[ac_hwcap_ldflags=no])
|
|
if test "$ac_hwcap_ldflags" = "yes"; then
|
|
HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
|
|
fi
|
|
AC_MSG_RESULT($ac_hwcap_ldflags)
|
|
|
|
LDFLAGS="$ac_save_LDFLAGS"
|
|
|
|
AC_SUBST(HWCAP_LDFLAGS)
|
|
|
|
AM_CONDITIONAL(HAVE_HWCAP, test $ac_hwcap_ldflags != no)
|
|
])
|