aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-29 10:27:49 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-10-29 10:27:49 -0700
commitae8bf9f6f417d8d8eed10796f234367a015e837d (patch)
treec39c92d1ada3eb199cc9fffcc874fa018ae3593b /Makefile
parent667f07d281399414ff683536a848dda71e04d561 (diff)
downloadsubsurface-ae8bf9f6f417d8d8eed10796f234367a015e837d.tar.gz
Get rid of the terminal window that is displayed under Windows
Thanks to Michael Wiedmann I now know the magic incantation to get MinGW to create a Windows executable that doesn't open two windows, a text console and the actual gtk window. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5b5adb044..0d736e1b7 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@ ifeq ($(CC), i686-w64-mingw32-gcc)
LIBDIVECOMPUTERINCLUDES = `$(PKGCONFIG) --cflags libdivecomputer`
LIBDIVECOMPUTERARCHIVE = `$(PKGCONFIG) --libs libdivecomputer`
RESFILE = packaging/windows/subsurface.res
+ LDFLAGS += -Wl,-subsystem,windows
else
libdc-local := $(wildcard /usr/local/lib/libdivecomputer.a)