From 658685af935e89ddd2ca326b3e13e271d166014d Mon Sep 17 00:00:00 2001 From: fanquake Date: Thu, 16 Jun 2022 10:19:49 +0100 Subject: depends: default to using GCC tool wrappers (with GCC) This improves support for LTO by using gcc wrappers for ar, nm, ranlib, that correctly setup plugin arguments for LTO. Other HOSTS are using clang. --- depends/hosts/linux.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'depends/hosts/linux.mk') diff --git a/depends/hosts/linux.mk b/depends/hosts/linux.mk index b101043439..635d3d16da 100644 --- a/depends/hosts/linux.mk +++ b/depends/hosts/linux.mk @@ -5,6 +5,10 @@ ifneq ($(LTO),) linux_CFLAGS += -flto linux_CXXFLAGS += -flto linux_LDFLAGS += -flto + +linux_AR = $(host_toolchain)gcc-ar +linux_NM = $(host_toolchain)gcc-nm +linux_RANLIB = $(host_toolchain)gcc-ranlib endif linux_release_CFLAGS=-O2 -- cgit v1.2.3