Skip to content

Commit 851eb1e

Browse files
committed
Merge pull request #3554
77f1b4a gitian: add optimization to win32 protobuf (Wladimir J. van der Laan)
2 parents fb766b6 + 77f1b4a commit 851eb1e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

contrib/gitian-descriptors/gitian-win32.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ files:
2525
- "qt-win32-5.2.0-gitian-r1.zip"
2626
- "boost-win32-1.55.0-gitian-r6.zip"
2727
- "bitcoin-deps-win32-gitian-r10.zip"
28-
- "protobuf-win32-2.5.0-gitian-r3.zip"
28+
- "protobuf-win32-2.5.0-gitian-r4.zip"
2929
script: |
3030
#
3131
STAGING=$HOME/staging
@@ -37,7 +37,7 @@ script: |
3737
unzip ../build/qt-win32-5.2.0-gitian-r1.zip
3838
unzip ../build/boost-win32-1.55.0-gitian-r6.zip
3939
unzip ../build/bitcoin-deps-win32-gitian-r10.zip
40-
unzip ../build/protobuf-win32-2.5.0-gitian-r3.zip
40+
unzip ../build/protobuf-win32-2.5.0-gitian-r4.zip
4141
cd $HOME/build/
4242
#
4343
cd bitcoin

contrib/gitian-descriptors/protobuf-win32.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ script: |
1818
export TZ=UTC
1919
export INSTALLPREFIX=$OUTDIR/staging/deps
2020
export HOST=i686-w64-mingw32
21+
OPTFLAGS="-O2"
2122
# Integrity Check
2223
echo "13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 protobuf-2.5.0.tar.bz2" | sha256sum -c
2324
@@ -33,12 +34,12 @@ script: |
3334
cp src/protoc $INSTALLPREFIX/host/bin
3435
# Now recompile with the mingw cross-compiler:
3536
make distclean
36-
./configure --prefix=$INSTALLPREFIX --enable-shared=no --disable-dependency-tracking --with-protoc=$INSTALLPREFIX/host/bin/protoc --host=$HOST CXXFLAGS=-frandom-seed=11
37+
./configure --prefix=$INSTALLPREFIX --enable-shared=no --disable-dependency-tracking --with-protoc=$INSTALLPREFIX/host/bin/protoc --host=$HOST CXXFLAGS="-frandom-seed=11 ${OPTFLAGS}"
3738
make
3839
make install
3940
cd $INSTALLPREFIX
4041
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
4142
export FAKETIME=$REFERENCE_DATETIME
42-
zip -r $OUTDIR/protobuf-win32-2.5.0-gitian-r3.zip include lib host
43+
zip -r $OUTDIR/protobuf-win32-2.5.0-gitian-r4.zip include lib host
4344
unset LD_PRELOAD
4445
unset FAKETIME

0 commit comments

Comments
 (0)