crosscompiling fix for WINGW32 on Linux

origin
stpohle 23 years ago
parent 71eaf136e5
commit e73222c281

@ -1,15 +1,15 @@
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta - will be overwritten
dnl If you don't want it to overwrite it,
dnl Please disable it in the Anjuta project configuration
AC_INIT(configure.in)
AM_INIT_AUTOMAKE(bomberclone, 0.9.9)
AM_CONFIG_HEADER
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AC_EXEEXT
AC_OBJEXT
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
@ -17,8 +17,8 @@ AC_HEADER_STDC
dnl Checks for programs.
dnl Checks for libraries.
dnl Check for SDL
AM_PATH_SDL(1.1.0,
:,
@ -28,16 +28,11 @@ dnl Check for SDL
CFLAGS="$SDL_CFLAGS $CFLAGS"
LIBS="$SDL_LIBS $LIBS"
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Check for Compiling Type ... i.e. Crosscompiling
case "$target" in
*cygwin* | *mingw32* | *mingw32msvc* )
CFLAGS="$CFLAGS"
LIBS="$LIBS -liberty -lwsock32"
;;
esac
CFLAGS="$CFLAGS -Wall"

@ -8,9 +8,10 @@ TARGET=i386-mingw32msvc
PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"
export PATH
# configure
sh configure --target=$TARGET --host=$TARGET --build=i386-linux $*
rm -rf src/bomberclone.exe
cache=cross-config.cache
sh configure --cache-file="$cache" \
--target=$TARGET --host=$TARGET --build=i386-linux \
$*
exec make $*
mv src/bomberclone src/bomberclone.exe
exec strip src/bomberclone.exe

Loading…
Cancel
Save