diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl
index d2b2082d9f..311628f30a 100644
--- a/build/bakefiles/common.bkl
+++ b/build/bakefiles/common.bkl
@@ -95,6 +95,9 @@
$(top_builddir)lib
+
+ $(WXTOPDIR)$(DIRSEP)lib$(DIRSEP)$(COMPILER)
+
diff --git a/build/bakefiles/config.bkl b/build/bakefiles/config.bkl
index 21241df762..06a4827197 100644
--- a/build/bakefiles/config.bkl
+++ b/build/bakefiles/config.bkl
@@ -21,7 +21,7 @@
-
+
+
+
+
+
@@ -53,8 +57,20 @@
+
+
+
+
+
-
+ MSW
+ $(TOOLKIT.lower())
+
+
+
+
+ ..
+ objs_$(COMPILER)