diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl
index a700aa95ee..6747e1edc8 100644
--- a/build/bakefiles/common.bkl
+++ b/build/bakefiles/common.bkl
@@ -163,10 +163,20 @@
$(top_builddir)lib
-
- $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)_$(CFG_NAME_PART)
+
+ $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)_lib$(CFG)
+
+
+ $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)_dll$(CFG)
+
+
+
+ $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
+
+
+
@@ -253,14 +263,7 @@
$(UNICODE_DEFINE)
$(TOP_SRCDIR)include
$(LIBDIRNAME)
- $(LIBDIRNAME)
- $(INC_TIFF)
- $(INC_JPEG)
- $(INC_PNG)
- $(INC_ZLIB)
- $(INC_ODBC)
- $(INC_REGEX)
- $(INC_EXPAT)
+ $(SETUPHDIR)
@@ -400,16 +403,28 @@ $(TAB)copy "$(DOLLAR)(InputPath)" $(LIBDIRNAME)\wx\setup.h
wxodbc
wxregex
+
+
+ $(INC_TIFF)
+ $(INC_JPEG)
+ $(INC_PNG)
+ $(INC_ZLIB)
+ $(INC_ODBC)
+ $(INC_REGEX)
+ $(INC_EXPAT)
+
-
-
+
+
wxUSE_GUI=0
-
-
+
+
wxUSE_GUI=0
diff --git a/build/bakefiles/jpeg.bkl b/build/bakefiles/jpeg.bkl
index 66b17c91f6..66aab149c5 100644
--- a/build/bakefiles/jpeg.bkl
+++ b/build/bakefiles/jpeg.bkl
@@ -19,7 +19,7 @@
$(LIBDIRNAME)
- $(LIBDIRNAME)
+ $(SETUPHDIR)
-w-8004 -w-8008 -w-8057 -w-8066
src/jpeg/jcomapi.c
diff --git a/build/bakefiles/wx.bkl b/build/bakefiles/wx.bkl
index 30358874cb..feded73cb9 100644
--- a/build/bakefiles/wx.bkl
+++ b/build/bakefiles/wx.bkl
@@ -129,26 +129,30 @@
$(LIBDIRNAME)
-
+
libdir
+ $(SETUPHDIR)
+
+
+ libdir_setup
setup_h
- $(LIBDIRNAME)/wx
+ $(SETUPHDIR)/wx
-
+
univ
msw
- $(SRCDIR)/include/wx/$(SETUP_H_DIR)/setup0.h
- $(SRCDIR)/include/wx/$(SETUP_H_DIR)/setup.h
+ $(SRCDIR)/include/wx/$(SETUP_H_SUBDIR)/setup0.h
+ $(SRCDIR)/include/wx/$(SETUP_H_SUBDIR)/setup.h
setup_h
setup_h
- $(SRCDIR)/include/wx/$(SETUP_H_DIR)/setup.h
- $(LIBDIRNAME)/wx/setup.h
+ $(SRCDIR)/include/wx/$(SETUP_H_SUBDIR)/setup.h
+ $(SETUPHDIR)/wx/setup.h
diff --git a/build/bakefiles/wxwin.py b/build/bakefiles/wxwin.py
index 3423c64a8b..a87a235cb6 100644
--- a/build/bakefiles/wxwin.py
+++ b/build/bakefiles/wxwin.py
@@ -15,6 +15,7 @@ def __noopSubst(func, name):
return '$(%s)' % name
utils.addSubstituteCallback('CFG', __noopSubst)
utils.addSubstituteCallback('LIBDIRNAME', __noopSubst)
+utils.addSubstituteCallback('SETUPHDIR', __noopSubst)
utils.addSubstituteCallback('OBJS', __noopSubst)