From d21d7dfad9fb9cb5ce7ec6e51e2c1e1af96d3b60 Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 29 Sep 2022 00:57:20 +0800 Subject: [PATCH] modified: Makefile --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index a355cb9..a0872df 100644 --- a/Makefile +++ b/Makefile @@ -23,12 +23,14 @@ ifeq ($(COMPILER), clang ) ifneq (, $(shell which llvm-ranlib)) RANLIB = llvm-ranlib endif + LINKFLAGS += -Wl,-undefined,error else RANLIB = echo LIBTOOL = ar rcs ifneq (, $(shell which gcc-ar)) LIBTOOL = gcc-ar rcs endif + LINKFLAGS += -Wl,-no-undefined endif OPTFLAGS += $(SEMANTIC_INTERPOSITION)