# 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 = -ggdb -fno-permissive -fdeclone-ctor-dtor -pipe -Wno-error -fstack-protector-strong --param=ssp-buffer-size=4 -fexceptions -ggdb -fira-loop-pressure -fira-hoist-pressure -O3 -fno-omit-frame-pointer -flto=auto -mabi=64 -march=gs464 -mtune=gs464e -mxgot -flto-partition=none

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