From 22562c748e99967f16766aa01c274cc0eadd5244 Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 29 Sep 2022 01:13:34 +0800 Subject: [PATCH] modified: Makefile --- Makefile | 4 +--- cims.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 cims.sh diff --git a/Makefile b/Makefile index a0872df..114b3ad 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ MonetDB_INC = Threading = CXXFLAGS = --std=c++1z OPTFLAGS = -O3 -DNDEBUG -LINKFLAGS = -flto +LINKFLAGS = -flto + $(AQ_LINK_FLAG) SHAREDFLAGS = -shared FPIC = -fPIC COMPILER = $(shell $(CXX) --version | grep -q clang && echo clang|| echo gcc) @@ -23,14 +23,12 @@ 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) diff --git a/cims.sh b/cims.sh new file mode 100644 index 0000000..c701c8f --- /dev/null +++ b/cims.sh @@ -0,0 +1,8 @@ +#!/usr/bash +module load g++-11.2 +PWD=`pwd` +export LD_LIBRARY_PATH=$PWD/usr/lib64:$LD_LIBRARY_PATH:/lib:/lib64:/usr/lib:/usr/lib64 +export AQ_MONETDB_LIB=-L$PWD/usr/lib64 +export AQ_MONETDB_INC=-I$PWD/usr/include/monetdb/ +export CXX=g++-11.2 +export PCH=1 # Change to 0