]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Get rid of the terminal window that is displayed under Windows
authorDirk Hohndel <dirk@hohndel.org>
Sat, 29 Oct 2011 17:27:49 +0000 (10:27 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Sat, 29 Oct 2011 17:27:49 +0000 (10:27 -0700)
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>
Makefile

index 5b5adb044357477fd8fd0017c9e5fe7ac2b62a2b..0d736e1b761452225f34c496cdf6d89be6c1f854 100644 (file)
--- 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)