#!/bin/sh
set -eu

CBUILD=`uname -m`-unknown-linux-gnu
CHOST="x86_64-w64-mingw32"
CMAKE_TOOLCHAIN_FILE="../windows64.cmake"

# -fstack-protector-strong adds libssp which is needed for -D_FORTIFY_SOURCE=2.
# The -Bstatic option ensures that the library is statically linked so that we
# don't have to distribute the DLL.
HARDENING_FLAGS="-D_FORTIFY_SOURCE=2 -Wl,-Bstatic,--dynamicbase,--nxcompat -fstack-protector-strong"
