Skip to content

Commit b73380b

Browse files
cmuellnerdavidtgoldblatt
authored andcommitted
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 <[email protected]>
1 parent 4c8829e commit b73380b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abs_srcroot := @abs_srcroot@
2424
abs_objroot := @abs_objroot@
2525

2626
# Build parameters.
27-
CPPFLAGS := @CPPFLAGS@ -I$(srcroot)include -I$(objroot)include
27+
CPPFLAGS := @CPPFLAGS@ -I$(objroot)include -I$(srcroot)include
2828
CONFIGURE_CFLAGS := @CONFIGURE_CFLAGS@
2929
SPECIFIED_CFLAGS := @SPECIFIED_CFLAGS@
3030
EXTRA_CFLAGS := @EXTRA_CFLAGS@

0 commit comments

Comments
 (0)