From 3419ec8cd771f9d47815c1f3fc0edeb5f443031c Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 8 Mar 2019 22:54:21 +0400 Subject: add -mwindows linker option for mingw, otherwise client has console window --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index cdd6d74..622c701 100644 --- a/configure.ac +++ b/configure.ac @@ -104,6 +104,10 @@ AS_IF([test "x$SQLITE3" != xyes], [ AC_MSG_ERROR(["sqlite3 program not found"]) AS_IF([test "x$PICA_CLIENT_ENABLED" = "xyes"],[ #AC_PROG_CXX PKG_CHECK_MODULES([QT_DEPENDENCIES], [$QT_MODULES]) +AS_CASE([$host], + [*-w64-mingw*], [QT_DEPENDENCIES_LIBS="$QT_DEPENDENCIES_LIBS -mwindows"] + [] +) AC_SUBST([QT_DEPENDENCIES_CFLAGS]) AC_SUBST([QT_DEPENDENCIES_LIBS]) AC_CHECK_PROGS([UIC], [$QT_UIC_NAMES], [notfound]) -- cgit v1.2.1