af6c2c71ed
mingw upgrade allows more hardening, compiler bug fixes and possibily win64 later. Rename deps .zip files to be more consistent in revision format. Boost #4258 build fix for mingw32
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
---
|
|
name: "protobuf-win32"
|
|
suites:
|
|
- "precise"
|
|
architectures:
|
|
- "amd64"
|
|
packages:
|
|
- "mingw-w64"
|
|
- "g++-mingw-w64"
|
|
- "zip"
|
|
- "faketime"
|
|
reference_datetime: "2013-04-15 00:00:00"
|
|
remotes: []
|
|
files:
|
|
- "protobuf-2.5.0.tar.bz2"
|
|
script: |
|
|
#
|
|
export TZ=UTC
|
|
export INSTALLPREFIX=$OUTDIR/staging/deps
|
|
export HOST=i686-w64-mingw32
|
|
#
|
|
#
|
|
mkdir -p $INSTALLPREFIX
|
|
|
|
tar xjf protobuf-2.5.0.tar.bz2
|
|
cd protobuf-2.5.0
|
|
# First: build a native (linux) protoc
|
|
./configure --enable-shared=no --disable-dependency-tracking
|
|
make
|
|
mkdir -p $INSTALLPREFIX/host/bin
|
|
cp src/protoc $INSTALLPREFIX/host/bin
|
|
# Now recompile with the mingw cross-compiler:
|
|
make distclean
|
|
./configure --prefix=$INSTALLPREFIX --enable-shared=no --disable-dependency-tracking --with-protoc=$INSTALLPREFIX/host/bin/protoc --host=$HOST CXXFLAGS=-frandom-seed=11
|
|
make
|
|
make install
|
|
cd $INSTALLPREFIX
|
|
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
|
export FAKETIME=$REFERENCE_DATETIME
|
|
zip -r $OUTDIR/protobuf-win32-2.5.0-gitian-r3.zip include lib host
|
|
unset LD_PRELOAD
|
|
unset FAKETIME
|