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:
parent
7ba784891d
commit
329df39a13
@ -24,7 +24,11 @@ export PATH=/cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 12.0/
|
|||||||
VERSION=`cat VERSION`
|
VERSION=`cat VERSION`
|
||||||
DIST=libressl-$VERSION-$ARCH
|
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 clean
|
||||||
make -j 4 install DESTDIR=`pwd`/tmp
|
make -j 4 install DESTDIR=`pwd`/tmp
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user