From 603bea1e3c2db82aef5575b8610c6b3b0c9ee3e9 Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 29 Sep 2022 00:03:46 +0800 Subject: [PATCH] modified: Makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cf6cb52..819e440 100644 --- a/Makefile +++ b/Makefile @@ -23,13 +23,13 @@ ifeq ($(COMPILER), clang ) ifneq (, $(shell which llvm-ranlib)) RANLIB = llvm-ranlib endif - LINKFLAGS += -Wl,-undefined,error + LINKFLAGS += -lc++ else LIBTOOL = ar rcs ifneq (, $(shell which gcc-ar)) LIBTOOL = gcc-ar rcs endif - LINKFLAGS += -Wl,-no-undefined + LINKFLAGS += -lstdc++ endif OPTFLAGS += $(SEMANTIC_INTERPOSITION)