aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/mswin-build/README19
-rwxr-xr-xexamples/mswin-build/mkprerelease6
-rwxr-xr-xexamples/mswin-build/mkrelease7
3 files changed, 25 insertions, 7 deletions
diff --git a/examples/mswin-build/README b/examples/mswin-build/README
index 41cd6ebb2..e1d550d74 100644
--- a/examples/mswin-build/README
+++ b/examples/mswin-build/README
@@ -5,9 +5,22 @@ latter needs to be downloaded and installed from:
5 5
6 https://github.com/mstorsjo/llvm-mingw 6 https://github.com/mstorsjo/llvm-mingw
7 7
8The release build performs some additional optimisation and is 8The script should be run from the directory above a git repository
9slightly slower as a result. 9named busybox-w32. The builds are performed in the directories
10named in the TARGETS variable in the scripts. Previous copies of
11these directories are deleted.
12
13The scripts check out the master branch of the git repository. You
14should edit the script if you wish to build from a different commit.
15
16The build time recorded in the executables is the time of the checked
17out commit. This may not result in a perfectly reproducible build
18but it's a step in that direction.
19
20The release build performs some additional optimisation and takes
21slightly longer as a result.
10 22
11The busybox-w32 help message includes information about the build 23The busybox-w32 help message includes information about the build
12platform. Obtaining this information is very specific to the 24platform. Obtaining this information is very specific to the
13platform used. 25platform used: you may need to adjust this if building on something
26other than Fedora.
diff --git a/examples/mswin-build/mkprerelease b/examples/mswin-build/mkprerelease
index 1bdf886d9..7562c8557 100755
--- a/examples/mswin-build/mkprerelease
+++ b/examples/mswin-build/mkprerelease
@@ -45,7 +45,8 @@ do
45 45
46 cd $i 46 cd $i
47 git checkout master 47 git checkout master
48 make ${CONFIG} 48 SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) TZ=UTC0 \
49 make ${CONFIG}
49 ) 50 )
50done 51done
51 52
@@ -70,7 +71,8 @@ do
70 CRTV=$(rpm -q --qf '%{name} %{version}-%{release}\n' mingw${BITS}-crt) 71 CRTV=$(rpm -q --qf '%{name} %{version}-%{release}\n' mingw${BITS}-crt)
71 VERSION="$GCCV; $CRTV" 72 VERSION="$GCCV; $CRTV"
72 fi 73 fi
73 make -j $(nproc) EXTRAVERSION="-$(git describe --match=FRP | sed 's/FRP/PRE/')" MINGW_VER="$VERSION" 74 SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) TZ=UTC0 \
75 make -j $(nproc) EXTRAVERSION="-$(git describe --match=FRP | sed 's/FRP/PRE/')" MINGW_VER="$VERSION"
74 ) 76 )
75done 77done
76 78
diff --git a/examples/mswin-build/mkrelease b/examples/mswin-build/mkrelease
index 6dfd6c87e..2f59dce13 100755
--- a/examples/mswin-build/mkrelease
+++ b/examples/mswin-build/mkrelease
@@ -41,7 +41,9 @@ do
41 fi 41 fi
42 42
43 cd $i 43 cd $i
44 make ${CONFIG} 44 git checkout master
45 SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) TZ=UTC0 \
46 make ${CONFIG}
45 47
46 # The clang/aarch64 build is not subject to optimisation. The 48 # The clang/aarch64 build is not subject to optimisation. The
47 # '-flto' option increased the size of the binary slightly (0.23%) 49 # '-flto' option increased the size of the binary slightly (0.23%)
@@ -89,7 +91,8 @@ do
89 CRTV=$(rpm -q --qf '%{name} %{version}-%{release}\n' mingw${BITS}-crt) 91 CRTV=$(rpm -q --qf '%{name} %{version}-%{release}\n' mingw${BITS}-crt)
90 VERSION="$GCCV; $CRTV" 92 VERSION="$GCCV; $CRTV"
91 fi 93 fi
92 make -j $(nproc) EXTRAVERSION="-`git describe --match=FRP`" MINGW_VER="$VERSION" 94 SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) TZ=UTC0 \
95 make -j $(nproc) EXTRAVERSION="-`git describe --match=FRP`" MINGW_VER="$VERSION"
93 ) 96 )
94done 97done
95 98