diff options
| author | Anton <anton@picapica> | 2019-03-08 22:54:21 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-03-08 22:54:21 +0400 |
| commit | 3419ec8cd771f9d47815c1f3fc0edeb5f443031c (patch) | |
| tree | c3b32f0f6e41f510c59f37b214beaca5c3d927c4 | |
| parent | dd6bff66a5fb450eccdd831f87c9940b350a2e2f (diff) | |
| download | pica-pica-3419ec8cd771f9d47815c1f3fc0edeb5f443031c.tar.gz pica-pica-3419ec8cd771f9d47815c1f3fc0edeb5f443031c.zip | |
add -mwindows linker option for mingw, otherwise client has console window
| -rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
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]) |
