diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-01-27 15:30:51 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2014-01-27 15:30:51 -0500 |
commit | 6986861fdaef84a59f0b4a98ef334fab20aa5710 (patch) | |
tree | 4729deb1042bdb7b61fa05f74ed62f19a04a75b3 /src/m4 | |
parent | ca1913e8f64fc245157b008d6b37160306aa1d83 (diff) |
build: use -mwindows for gui targets when linking with mingw
Diffstat (limited to 'src/m4')
-rw-r--r-- | src/m4/bitcoin_qt.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/m4/bitcoin_qt.m4 b/src/m4/bitcoin_qt.m4 index 4e8cfec0cf..068371e83a 100644 --- a/src/m4/bitcoin_qt.m4 +++ b/src/m4/bitcoin_qt.m4 @@ -109,6 +109,10 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[ AX_CHECK_LINK_FLAG([[$base_frameworks]],[QT_LIBS="$QT_LIBS $base_frameworks"],[AC_MSG_ERROR(could not find base frameworks)]) ]) ;; + *mingw*) + BITCOIN_QT_CHECK([ + AX_CHECK_LINK_FLAG([[-mwindows]],[QT_LDFLAGS="$QT_LDFLAGS -mwindows"],[AC_MSG_WARN(-mwindows linker support not detected)]) + ]) esac @@ -137,6 +141,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[ AC_SUBST(QT_INCLUDES) AC_SUBST(QT_LIBS) + AC_SUBST(QT_LDFLAGS) AC_SUBST(QT_DBUS_INCLUDES) AC_SUBST(QT_DBUS_LIBS) AC_SUBST(QT_TEST_INCLUDES) |