From d6079352c9b1b91b19fa3c70f4a63ee62cc66489 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 27 Jul 2023 17:45:17 +0900 Subject: [PATCH] give a reasonable default of BUILTINS_LIB --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 41d4f1f22..fee153829 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,8 @@ ifeq ($(THREAD_MODEL), posix) TARGET_TRIPLE = wasm32-wasi-threads endif +BUILTINS_LIB ?= $(shell ${CC} --print-libgcc-file-name) + # These variables describe the locations of various files and directories in # the source tree. DLMALLOC_DIR = dlmalloc