modified: Makefile

dev
Bill 2 years ago
parent d21d7dfad9
commit 22562c748e

@ -4,7 +4,7 @@ MonetDB_INC =
Threading = Threading =
CXXFLAGS = --std=c++1z CXXFLAGS = --std=c++1z
OPTFLAGS = -O3 -DNDEBUG OPTFLAGS = -O3 -DNDEBUG
LINKFLAGS = -flto LINKFLAGS = -flto + $(AQ_LINK_FLAG)
SHAREDFLAGS = -shared SHAREDFLAGS = -shared
FPIC = -fPIC FPIC = -fPIC
COMPILER = $(shell $(CXX) --version | grep -q clang && echo clang|| echo gcc) COMPILER = $(shell $(CXX) --version | grep -q clang && echo clang|| echo gcc)
@ -23,14 +23,12 @@ ifeq ($(COMPILER), clang )
ifneq (, $(shell which llvm-ranlib)) ifneq (, $(shell which llvm-ranlib))
RANLIB = llvm-ranlib RANLIB = llvm-ranlib
endif endif
LINKFLAGS += -Wl,-undefined,error
else else
RANLIB = echo RANLIB = echo
LIBTOOL = ar rcs LIBTOOL = ar rcs
ifneq (, $(shell which gcc-ar)) ifneq (, $(shell which gcc-ar))
LIBTOOL = gcc-ar rcs LIBTOOL = gcc-ar rcs
endif endif
LINKFLAGS += -Wl,-no-undefined
endif endif
OPTFLAGS += $(SEMANTIC_INTERPOSITION) 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