build: prefer LTO-aware ar and ranlib

This actually fixes --with-lto.
This commit is contained in:
Lubomir Rintel 2016-05-18 17:19:03 +02:00
parent 5f849faa15
commit 071b4fca61

View file

@ -35,6 +35,10 @@ AC_PROG_CXX
AC_PROG_LN_S
# Prefer gcc-* variants; the ones libtool would choose don't work with LTO
AC_CHECK_TOOLS(AR, [gcc-ar ar], false)
AC_CHECK_TOOLS(RANLIB, [gcc-ranlib ranlib], :)
dnl Initialize libtool
LT_PREREQ([2.2])
LT_INIT([disable-static])