From acab82a28bb24df182833b173133f35fc559ca2a Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 26 Jan 2015 17:29:33 +0100 Subject: [PATCH] Add /usr/include to the include path for MinGW. --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index db0356adb..64458d5ac 100644 --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,10 @@ case $target in *mingw*) CFLAGS="$CFLAGS -DORTP_STATIC -D_WIN32_WINNT=0x0501 " CXXFLAGS="$CXXFLAGS -DORTP_STATIC -D_WIN32_WINNT=0x0501" - LIBS="$LIBS -L/lib -lws2_32" + dnl Workaround for mingw, whose compiler does not check in /usr/include ... + CPPFLAGS="$CPPFLAGS -I/usr/include" + LDFLAGS="$LDFLAGS -L/usr/lib" + LIBS="$LIBS -lws2_32" GUI_FLAGS="-mwindows" CONSOLE_FLAGS="-mconsole" mingw_found=yes