aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/mswin-build/mkrelease9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/mswin-build/mkrelease b/examples/mswin-build/mkrelease
index 51dd3346b..6dfd6c87e 100755
--- a/examples/mswin-build/mkrelease
+++ b/examples/mswin-build/mkrelease
@@ -42,10 +42,15 @@ do
42 42
43 cd $i 43 cd $i
44 make ${CONFIG} 44 make ${CONFIG}
45 # TODO: add optimisations for clang/aarch64 build 45
46 # The clang/aarch64 build is not subject to optimisation. The
47 # '-flto' option increased the size of the binary slightly (0.23%)
48 # and decreased the time to run the testsuite slightly (0.33%).
49 # It hardly seems worth bothering about.
50 #
46 if [ $i != "build_64a" ] 51 if [ $i != "build_64a" ]
47 then 52 then
48 # link time optimisation, fortify, stack protection 53 # link time optimisation, stack protection
49 sed -e 's/^CONFIG_EXTRA_CFLAGS="\(.*\)"$/CONFIG_EXTRA_CFLAGS="\1 -flto -fstack-protector --param=ssp-buffer-size=4"/' \ 54 sed -e 's/^CONFIG_EXTRA_CFLAGS="\(.*\)"$/CONFIG_EXTRA_CFLAGS="\1 -flto -fstack-protector --param=ssp-buffer-size=4"/' \
50 -e 's/^CONFIG_EXTRA_CFLAGS=" /CONFIG_EXTRA_CFLAGS="/' \ 55 -e 's/^CONFIG_EXTRA_CFLAGS=" /CONFIG_EXTRA_CFLAGS="/' \
51 -e 's/^CONFIG_EXTRA_LDLIBS="\(.*\)"$/CONFIG_EXTRA_LDLIBS="\1 -l:libssp.a"/' \ 56 -e 's/^CONFIG_EXTRA_LDLIBS="\(.*\)"$/CONFIG_EXTRA_LDLIBS="\1 -l:libssp.a"/' \