summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-11-02 15:22:45 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-11-02 15:22:45 +0100
commit06c5784c9cdc977fa690a499d8e4f489aab65536 (patch)
tree7f223e90ccef96004393cf9a41b8afd8b59f4dfa /configure.ac
parentc603941b7fd2323a4d8631ac05688b7b4460e088 (diff)
Use "g++ -mwindows" when compiling qphotorec under Windows
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 016b686..30c064e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -285,9 +285,11 @@ use_icon=no
case "$target" in
*-*-*cygwin*)
use_icon=yes
+ win_target=yes
;;
*-*-*mingw*)
use_icon=yes
+ win_target=yes
;;
*-*-*djgpp)
if test -z "$CC" ; then CC=gcc; fi
@@ -854,6 +856,10 @@ then
qphotorec_CXXFLAGS="$qphotorec_CXXFLAGS $QTGUI_CFLAGS"
fi
AM_CONDITIONAL(USEQT, test "$use_qt" = true)
+if test "$win_target" = yes;
+then
+ qphotorec_LDADD="$qphotorec_LDADD -mwindows"
+fi
# e2fsprogs may be using pthread
# checks for pthreads