diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl
index 832470de29..f769c3f40f 100644
--- a/build/bakefiles/common.bkl
+++ b/build/bakefiles/common.bkl
@@ -390,19 +390,21 @@ $(TAB)copy "$(DOLLAR)(InputPath)" $(LIBDIRNAME)\wx\setup.h
-
+
+ wxUSE_GUI=0
+
+
+ template_append="wx_append_base_nomono">
+ wxUSE_GUI=0
+
-
-
-
@@ -430,6 +432,7 @@ $(TAB)copy "$(DOLLAR)(InputPath)" $(LIBDIRNAME)\wx\setup.h
$(id)$(addPrefixIfNotEmpty('_',WXNAMESUFFIX))$(PLUGIN_VERSION)
WXUSINGDLL
+ wxUSE_GUI=0
diff --git a/build/bakefiles/multilib.bkl b/build/bakefiles/multilib.bkl
index befb320384..144bf65ba6 100644
--- a/build/bakefiles/multilib.bkl
+++ b/build/bakefiles/multilib.bkl
@@ -11,7 +11,6 @@
cond="SHARED=='1' and MONOLITHIC=='0'">
WXMAKINGDLL_BASE
wxUSE_BASE=1
- wxUSE_GUI=0
$(BASE_SRC) $(BASE_AND_GUI_SRC)
$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)
@@ -20,7 +19,6 @@
wxUSE_BASE=1
- wxUSE_GUI=0
$(BASE_SRC) $(BASE_AND_GUI_SRC)
$(BASE_CMN_HDR) $(BASE_PLATFORM_HDR)