diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl
index 859180d3bf..e22e718bbb 100644
--- a/build/bakefiles/common.bkl
+++ b/build/bakefiles/common.bkl
@@ -434,14 +434,17 @@
the LIBDIRNAME and not any wx libraries installed system-wide.
-->
$(WX_LDFLAGS)
- $(WIN32_DPI_MANIFEST)
- $(WIN32_DPI_LINKFLAG)
$(LINK_TARGET_CPU)
$(TARGET_CPU_COMPFLAG)
+
+ $(WIN32_DPI_MANIFEST)
+ $(WIN32_DPI_LINKFLAG)
+
+
$(LIBDIRNAME)
$(LIBDIR)
diff --git a/build/bakefiles/common_samples_intree.bkl b/build/bakefiles/common_samples_intree.bkl
index f35c5e1414..8bb8503826 100644
--- a/build/bakefiles/common_samples_intree.bkl
+++ b/build/bakefiles/common_samples_intree.bkl
@@ -19,7 +19,7 @@
$(DLLFLAG)
-
+
gui
$(SRCDIR)/$(WXTOPDIR)samples