aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-02-19 23:05:51 -0600
committerBrent Cook <bcook@openbsd.org>2015-02-19 23:05:51 -0600
commit329df39a13555f998da6181c4230acb8f4a4386a (patch)
treedfffd0f59d372f129307da8f6644b40725ac7f6f
parent7ba784891d6dad8335fa916450bb4c5a6eb83937 (diff)
downloadportable-329df39a13555f998da6181c4230acb8f4a4386a.tar.gz
portable-329df39a13555f998da6181c4230acb8f4a4386a.tar.bz2
portable-329df39a13555f998da6181c4230acb8f4a4386a.zip
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.
-rwxr-xr-xdist-win.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/dist-win.sh b/dist-win.sh
index fa5bdce..a3f008a 100755
--- a/dist-win.sh
+++ b/dist-win.sh
@@ -24,7 +24,11 @@ export PATH=/cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 12.0/
24VERSION=`cat VERSION` 24VERSION=`cat VERSION`
25DIST=libressl-$VERSION-$ARCH 25DIST=libressl-$VERSION-$ARCH
26 26
27CC=$HOST-gcc ./configure --prefix=/ --host=$HOST --enable-libtls 27CC=$HOST-gcc \
28CFLAGS="-Wl,--nxcompat -fstack-protector" \
29LDFLAGS="-lssp -Wl,--dynamicbase,--export-all-symbols" \
30./configure --prefix=/ --host=$HOST --enable-libtls
31
28make clean 32make clean
29make -j 4 install DESTDIR=`pwd`/tmp 33make -j 4 install DESTDIR=`pwd`/tmp
30 34