# Copyright(c)'2019 by The Givaro group
# This file is part of Givaro.
# Givaro is governed by the CeCILL-B license under French law
# and abiding by the rules of distribution of free software. 
# see the COPYRIGHT file for more details.

CXXFLAGS += ${OPTFLAGS} `pkg-config givaro --cflags`
LOADLIBES+= `pkg-config givaro --libs`

NATIVECOMPI = g++
NATIVEFLAGS = -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/givaro -flto=auto -falign-functions=32

ifndef NONATIVE
CXX = ${NATIVECOMPI}
CXXFLAGS += ${NATIVEFLAGS}
endif
