# 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 = riscv64-rosa-linux-gnu-c++
NATIVEFLAGS = -O2 -fomit-frame-pointer -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -fstack-protector-all --param=ssp-buffer-size=4 -march=rv64imafdc -mabi=lp64d -flto

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