Commit ad127052 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

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

parent 1554054b
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment