diff options
| author | Ron Yorston <rmy@pobox.com> | 2024-02-25 10:12:20 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2024-02-25 10:12:20 +0000 |
| commit | ebe96eb8070d72c74a447ce06037e7b88ebdee40 (patch) | |
| tree | 6ac8b8091121b0981e17103733931d5573fb3a70 | |
| parent | 12e6f1f719f53e88fa791da5eb610604d989dbee (diff) | |
| download | busybox-w32-ebe96eb8070d72c74a447ce06037e7b88ebdee40.tar.gz busybox-w32-ebe96eb8070d72c74a447ce06037e7b88ebdee40.tar.bz2 busybox-w32-ebe96eb8070d72c74a447ce06037e7b88ebdee40.zip | |
win32: add a comment about LTO to mkrelease
| -rwxr-xr-x | examples/mswin-build/mkrelease | 9 |
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"/' \ |
