From 8710519821f40dad2f91b890d7451c8d00c6294c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Sat, 19 Jun 2021 19:49:24 +0200 Subject: [PATCH] enh: windows: hide useless background console --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 454e0d3..408cfe9 100755 --- a/configure +++ b/configure @@ -54,6 +54,11 @@ fi WITH_OPTION cli-only no "[yes | no]" +# Remove the useless CLI console under windows +if [[ $(uname) =~ MINGW ]] && [ "$cfg_with_cli_only" != "yes" ]; then + CFG_CFLAGS="$CFG_CFLAGS -mwindows" +fi + # Look for required libraries PRINT_MESSAGE "\nLooking for includes and libraries:"