mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 13:00:31 +01:00
build: prefer LTO-aware ar and ranlib
This actually fixes --with-lto.
This commit is contained in:
parent
5f849faa15
commit
071b4fca61
1 changed files with 4 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue