Skip to content

Commit

Permalink
compile mingw executables static
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelfreitas committed Jul 10, 2014
1 parent ac9e5f5 commit b21af7d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions contrib/gitian-descriptors/gitian-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ script: |
# Defines
export TZ=UTC
INDIR=$HOME/build
OPTFLAGS='-O2'
OPTFLAGS='-O2 -static -static-libgcc -static-libstdc++'
TEMPDIR="$HOME/tempdir"
for BITS in 32 64; do # for architectures
#
Expand All @@ -55,12 +55,13 @@ script: |
cp -a $HOME/build/twister-core distsrc
mkdir -p distsrc
cd distsrc
./bootstrap.sh --bindir=$BINDIR --prefix=$STAGING --host=$HOST --with-boost=$STAGING --with-openssl=$STAGING CPPFLAGS=-I$STAGING/include LDFLAGS=-L$STAGING/lib --without-boost-locale
./autotool.sh
./configure --bindir=$BINDIR --prefix=$STAGING --host=$HOST --with-boost=$STAGING --with-openssl=$STAGING CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib ${OPTFLAGS}" CXXFLAGS="${OPTFLAGS}" --without-boost-locale
#export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
#export FAKETIME=$REFERENCE_DATETIME
make $MAKEOPTS
strip .libs/twisterd.exe
cp -f .libs/twisterd.exe $BINDIR/
strip twisterd.exe
cp -f twisterd.exe $BINDIR/
unset LD_PRELOAD
unset FAKETIME
done # for BITS in
Expand Down

0 comments on commit b21af7d

Please sign in to comment.