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/mingw32.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/mingw32.mk')
-rw-r--r-- | depends/hosts/mingw32.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/depends/hosts/mingw32.mk b/depends/hosts/mingw32.mk index b98f9ab7ac..fc1cc1afbe 100644 --- a/depends/hosts/mingw32.mk +++ b/depends/hosts/mingw32.mk @@ -9,6 +9,10 @@ ifneq ($(LTO),) mingw32_CFLAGS += -flto mingw32_CXXFLAGS += -flto mingw32_LDFLAGS += -flto + +mingw32_AR = $(host_toolchain)gcc-ar +mingw32_NM = $(host_toolchain)gcc-nm +mingw32_RANLIB = $(host_toolchain)gcc-ranlib endif mingw32_release_CFLAGS=-O2 |