Build system: display a warning when compiling for the Cygwin target

time-shift
Sébastien Villemot 2010-08-18 16:21:23 +02:00
parent 1554054bf0
commit ad127052d8
2 changed files with 6 additions and 5 deletions

View File

@ -31,6 +31,9 @@ case ${host_os} in
LDFLAGS="$LDFLAGS -static-libgcc" # On mingw32, we don't want dynamic libgcc
;;
*cygwin*)
AC_MSG_WARN([You are compiling for the Cygwin target. This means that the preprocessor will])
AC_MSG_WARN([not run from MATLAB unless you add the Cygwin DLL to the path.])
AC_MSG_WARN([This is probably not what you want. Consider using a MinGW cross-compiler.])
if test "x$F77" = "x"; then
# On Cygwin 1.7, g77 comes has version 3, and is not compatible with default gcc/g++ which has version 4
# And by default, the AC_PROG_F77 will pick up g77 if it is present (even if gfortran is also here)

View File

@ -42,11 +42,9 @@ fi
case ${host_os} in
*cygwin*)
# MATLAB can't use native Cygwin DLL, so using MinGW 3 shipped with Cygwin
CC=gcc-3
CXX=g++-3
CFLAGS="$CFLAGS -mno-cygwin"
CXXFLAGS="$CXXFLAGS -mno-cygwin"
AC_MSG_WARN([You are compiling for the Cygwin target. This means that the MEX files will])
AC_MSG_WARN([not run from MATLAB, because it cannot load the Cygwin DLL.])
AC_MSG_WARN([This is probably not what you want. Consider using a MinGW cross-compiler.])
;;
esac