From 32f9805a303785af1a3ee417e6bf3058917b3731 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Fri, 26 Jun 2020 16:46:43 +0200 Subject: [PATCH] build: Make it possible to build without gcc The external Makefile hardcodes gcc to get the machine spec. This should use the configured C compiler instead. This bug was introduced in 601464416b7d437409ceb8f7373115d2f14b21d1. --- external/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/Makefile b/external/Makefile index 76a5bb9fa..c47fdf52a 100644 --- a/external/Makefile +++ b/external/Makefile @@ -9,7 +9,7 @@ ifdef BUILD CROSSCOMPILE_OPTS := --host="$(MAKE_HOST)" --build="$(BUILD)" TARGET_DIR := external/"$(MAKE_HOST)" else -TARGET_DIR := external/"$(shell gcc -dumpmachine)" +TARGET_DIR := external/"$(shell ${CC} -dumpmachine)" endif LIBSODIUM_HEADERS := external/libsodium/src/libsodium/include/sodium.h