Fix include path order for out-of-tree builds.
When configuring out-of-tree (source directory is not build directory), the generated include files from the build directory should have higher priority than those in the source dir. This is especially helpful when cross-compiling. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
This commit is contained in:
parent
4c8829e692
commit
b73380bee0
@ -24,7 +24,7 @@ abs_srcroot := @abs_srcroot@
|
|||||||
abs_objroot := @abs_objroot@
|
abs_objroot := @abs_objroot@
|
||||||
|
|
||||||
# Build parameters.
|
# Build parameters.
|
||||||
CPPFLAGS := @CPPFLAGS@ -I$(srcroot)include -I$(objroot)include
|
CPPFLAGS := @CPPFLAGS@ -I$(objroot)include -I$(srcroot)include
|
||||||
CONFIGURE_CFLAGS := @CONFIGURE_CFLAGS@
|
CONFIGURE_CFLAGS := @CONFIGURE_CFLAGS@
|
||||||
SPECIFIED_CFLAGS := @SPECIFIED_CFLAGS@
|
SPECIFIED_CFLAGS := @SPECIFIED_CFLAGS@
|
||||||
EXTRA_CFLAGS := @EXTRA_CFLAGS@
|
EXTRA_CFLAGS := @EXTRA_CFLAGS@
|
||||||
|
Loading…
Reference in New Issue
Block a user