mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 12:34:24 +00:00
compile mingw executables static
This commit is contained in:
parent
ac9e5f5d30
commit
b21af7d18b
@ -31,7 +31,7 @@ script: |
|
|||||||
# Defines
|
# Defines
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
INDIR=$HOME/build
|
INDIR=$HOME/build
|
||||||
OPTFLAGS='-O2'
|
OPTFLAGS='-O2 -static -static-libgcc -static-libstdc++'
|
||||||
TEMPDIR="$HOME/tempdir"
|
TEMPDIR="$HOME/tempdir"
|
||||||
for BITS in 32 64; do # for architectures
|
for BITS in 32 64; do # for architectures
|
||||||
#
|
#
|
||||||
@ -55,12 +55,13 @@ script: |
|
|||||||
cp -a $HOME/build/twister-core distsrc
|
cp -a $HOME/build/twister-core distsrc
|
||||||
mkdir -p distsrc
|
mkdir -p distsrc
|
||||||
cd 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 LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
||||||
#export FAKETIME=$REFERENCE_DATETIME
|
#export FAKETIME=$REFERENCE_DATETIME
|
||||||
make $MAKEOPTS
|
make $MAKEOPTS
|
||||||
strip .libs/twisterd.exe
|
strip twisterd.exe
|
||||||
cp -f .libs/twisterd.exe $BINDIR/
|
cp -f twisterd.exe $BINDIR/
|
||||||
unset LD_PRELOAD
|
unset LD_PRELOAD
|
||||||
unset FAKETIME
|
unset FAKETIME
|
||||||
done # for BITS in
|
done # for BITS in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user