diff --git a/makefiles/toolchain/gnu.inc.mk b/makefiles/toolchain/gnu.inc.mk index 0d4ddd721e0bc89f21cd5fde73c78b07883ba9fb..039b8aa14def68926308948446750ec11eb951ca 100644 --- a/makefiles/toolchain/gnu.inc.mk +++ b/makefiles/toolchain/gnu.inc.mk @@ -3,8 +3,10 @@ export CXX = $(PREFIX)g++ export CCAS ?= $(CC) ifeq ($(LTO),1) export AR = $(PREFIX)gcc-ar +export RANLIB = $(PREFIX)gcc-ranlib else export AR = $(PREFIX)ar +export RANLIB = $(PREFIX)ranlib endif export AS = $(PREFIX)as export LINK = $(PREFIX)gcc