Commit 1e075cb
committed
liblouis: add -I$(LOCAL_PATH)/liblouis to CFLAGS to fix <config.h> include
Background:
Upstream liblouis recently switched to `#include <config.h>` instead of
`#include "config.h"`. This works fine with autotools builds because
`-I.` is always added to the compiler flags. However, in the Android NDK
build system `.` is not in the include path by default, which causes
build failures.
Fix:
Explicitly add -I$(LOCAL_PATH)/liblouis to LOCAL_CFLAGS so that <config.h>
is found during compilation. This keeps upstream sources untouched and
solves the issue cleanly in the build system layer.
Related upstream PR (proposed fix for using `"config.h"`):
liblouis/liblouis#1855
Signed-off-by: Patryk Miś <foss@patrykmis.com>1 parent 3d7462f commit 1e075cb
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments