enable Windows NX / ALSR / stack protector

I will update my toolchain and try --high-entropy-va and
stack-protector-strong later. We will probably need to ship libssp-0.dll
as well. Thanks to jsg for hints.
This commit is contained in:
Brent Cook 2015-02-19 23:05:51 -06:00
parent 7ba784891d
commit 329df39a13

View File

@ -24,7 +24,11 @@ export PATH=/cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 12.0/
VERSION=`cat VERSION`
DIST=libressl-$VERSION-$ARCH
CC=$HOST-gcc ./configure --prefix=/ --host=$HOST --enable-libtls
CC=$HOST-gcc \
CFLAGS="-Wl,--nxcompat -fstack-protector" \
LDFLAGS="-lssp -Wl,--dynamicbase,--export-all-symbols" \
./configure --prefix=/ --host=$HOST --enable-libtls
make clean
make -j 4 install DESTDIR=`pwd`/tmp