Commit 607a5236 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix cross compilation with mingw.

parent 1bff66e4
......@@ -29,9 +29,11 @@ LT_INIT(win32-dll disable-static)
dnl Workaround for mingw, whose compiler doesn't check in /usr/include ...
case "$target_os" in
*mingw*)
if test "$prefix" = "/usr" ; then
CPPFLAGS="$CPPFLAGS -I/usr/include"
LDFLAGS="$LDFLAGS -L/usr/lib"
if test "$cross_compiling" != "yes"; then
if test "$prefix" = "/usr" ; then
CPPFLAGS="$CPPFLAGS -I/usr/include"
LDFLAGS="$LDFLAGS -L/usr/lib"
fi
fi
;;
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