[tools] Fix up 32-bit cross-compile scripts

This commit is contained in:
Bill Currie 2021-04-02 08:55:16 +09:00
parent e50a079f72
commit 18247a8c8e
2 changed files with 12 additions and 10 deletions

View file

@ -1,19 +1,20 @@
#!/bin/sh -x
set -e
mkdir -p native i686-pc-mingw32
mkdir -p native i686-w64-mingw32.static
cd native
../../configure \
--enable-silent-rules \
--disable-shared \
--without-clients \
--without-servers \
--with-tools=qfcc,pak
cd ../i686-pc-mingw32
--with-tools=qfcc,pak,qwaq
cd ../i686-w64-mingw32.static
export MINGW=/opt/mxe
export MINGW_USR=$MINGW/usr/i686-pc-mingw32
export MINGW_USR=$MINGW/usr/i686-w64-mingw32.static
export PKG_CONFIG_LIBDIR=$MINGW_USR/lib/pkgconfig
export PKG_CONFIG_PATH=$MINGW_USR/local/lib/pkgconfig
export PATH=$MINGW/usr/bin:$PATH
../../configure \
--host=i686-pc-mingw32 \
--host=i686-w64-mingw32.static \
--disable-shared \
$*

View file

@ -3,14 +3,15 @@ set -e
if test -d native; then
cd native
make $*
cd ../i686-pc-mingw32
ln -fs ../native/tools/qfcc/source/qfcc .
ln -fs ../native/tools/pak/pak .
cd ../i686-w64-mingw32.static
ln -fs ../native/qfcc .
ln -fs ../native/pak .
ln -fs ../native/ruamoko/qwaq/qwaq-curses .
fi
export MINGW=/opt/mxe
export MINGW_USR=$MINGW/usr/i686-pc-mingw32
export MINGW_USR=$MINGW/usr/i686-w64-mingw32.static
export PKG_CONFIG_LIBDIR=$MINGW_USR/lib/pkgconfig
export PKG_CONFIG_PATH=$MINGW_USR/local/lib/pkgconfig
export PATH=$MINGW/usr/bin:$PATH
make PAK='$(top_builddir)/pak' QFCC='$(top_builddir)/qfcc' $*
make PAK='$(top_builddir)/pak' QFCC='$(top_builddir)/qfcc' QWAQ_CURSES='$(top_builddir)/qwaq-curses' $*