From aecd12261805b14af8070c6e07f2ed8aa43951a2 Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 29 Sep 2022 00:00:55 +0800 Subject: [PATCH] modified: Makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5793de1..cf6cb52 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ MonetDB_INC = Threading = CXXFLAGS = --std=c++1z OPTFLAGS = -O3 -DNDEBUG -LINKFLAGS = -flto +LINKFLAGS = -flto SHAREDFLAGS = -shared FPIC = -fPIC COMPILER = $(shell $(CXX) --version | grep -q clang && echo clang|| echo gcc) @@ -23,11 +23,13 @@ ifeq ($(COMPILER), clang ) ifneq (, $(shell which llvm-ranlib)) RANLIB = llvm-ranlib endif + LINKFLAGS += -Wl,-undefined,error else LIBTOOL = ar rcs ifneq (, $(shell which gcc-ar)) LIBTOOL = gcc-ar rcs endif + LINKFLAGS += -Wl,-no-undefined endif OPTFLAGS += $(SEMANTIC_INTERPOSITION)