diff options
author | fanquake <fanquake@gmail.com> | 2022-06-16 10:19:49 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-07-18 17:13:55 +0100 |
commit | 658685af935e89ddd2ca326b3e13e271d166014d (patch) | |
tree | 1caa492cc914008ff835334d6822e26fc8aedb7b /depends/hosts/linux.mk | |
parent | 6fdc13c61f0e5ef6be0c03fa475741ab2cd57672 (diff) | |
download | bitcoin-658685af935e89ddd2ca326b3e13e271d166014d.tar.xz |
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.
Diffstat (limited to 'depends/hosts/linux.mk')
-rw-r--r-- | depends/hosts/linux.mk | 4 |
1 files changed, 4 insertions, 0 deletions
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 |