diff --git a/build/bakefiles/Makefile b/build/bakefiles/Makefile
index 46718ee490..da993e109f 100644
--- a/build/bakefiles/Makefile
+++ b/build/bakefiles/Makefile
@@ -104,7 +104,7 @@ Makefile: regenMakefile.py
@exit 1
# from wx.bkl
-../../Makefile.in: common.bkl config.bkl files.bkl monolithic.bkl wxwin.py wx.bkl
+../../Makefile.in: common.bkl config.bkl files.bkl monolithic.bkl multilib.bkl wxwin.py wx.bkl
$(BAKEFILE) $(BAKEARGS) -fautoconf -o../../Makefile.in wx.bkl
touch ../../Makefile.in
@@ -474,6 +474,6 @@ Makefile: regenMakefile.py
touch ../../samples/internat/Makefile.in
# from ../../contrib/build/xrc/xrc.bkl
-../../contrib/src/xrc/Makefile.in: common.bkl common_samples.bkl config.bkl ../../contrib/build/xrc/xrc.bkl
+../../contrib/src/xrc/Makefile.in: common.bkl common_contrib.bkl config.bkl ../../contrib/build/xrc/xrc.bkl
$(BAKEFILE) $(BAKEARGS) -fautoconf -o../../contrib/src/xrc/Makefile.in -DWXTOPDIR=/../../.. -DAUTOCONF_MACROS_FILE=../../autoconf_inc.m4 ../../contrib/build/xrc/xrc.bkl
touch ../../contrib/src/xrc/Makefile.in
diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl
index ea50868328..d2b2082d9f 100644
--- a/build/bakefiles/common.bkl
+++ b/build/bakefiles/common.bkl
@@ -74,11 +74,14 @@
+
+ $(mk.evalExpr(wxwin.mkLibName('base')))
+
$(mk.evalExpr(wxwin.mkLibName('core')))
- $(mk.evalExpr(wxwin.mkLibName('core')))
+ $(mk.evalExpr(wxwin.mkLibName('html')))
diff --git a/build/bakefiles/config.bkl b/build/bakefiles/config.bkl
index 4afe0321f0..b061604ae9 100644
--- a/build/bakefiles/config.bkl
+++ b/build/bakefiles/config.bkl
@@ -19,7 +19,6 @@
-