CXX_STD = CXX11

## GNU GMP support added by configure if found
## You can also enable allocation tracking by adding -DTRACK_ALLOC here
PKG_CXXFLAGS = -I. -DGMP -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DR_BUILD

## GNU GMP support added by configure if found
PKG_LIBS += $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) -lgmp 

PKG_LIBS += $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")

## PKG_LIBS += -fsanitize=address -fno-omit-frame-pointer

## PKG_LIBS += l

