From 43cbe27cbb6324606825093c9ebc88ae954f01da Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 28 Sep 2022 23:24:06 +0800 Subject: [PATCH] modified: Makefile --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 6a63ef9..79943a4 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ LIBAQ_SRC = server/server.cpp server/monetdb_conn.cpp server/io.cpp LIBAQ_OBJ = server.o monetdb_conn.o io.o SEMANTIC_INTERPOSITION = -fno-semantic-interposition RANLIB = ranlib + ifeq ($(COMPILER), clang ) CLANG_GE_10 = $(shell expr `$(CXX) -dumpversion | cut -f1 -d.` \>= 10) ifneq ($(CLANG_GE_10), 1) @@ -22,6 +23,10 @@ ifeq ($(COMPILER), clang ) ifneq (, $(shell which llvm-ranlib)) RANLIB = llvm-ranlib endif +else + ifneq (, $(shell which gcc-ar)) + LIBTOOL = gcc-ar rcs + endif endif OPTFLAGS += $(SEMANTIC_INTERPOSITION)