modified: Makefile

dev
Bill 2 years ago
parent d21d7dfad9
commit 22562c748e

@ -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)

@ -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
Loading…
Cancel
Save