Use kore_source headers if single_binary is set.

Before kodev always picked up the kore headers installed on the system.
This presented some annoying problems as the system headers may not
match the headers used by the kore_source you're actually building
against.
This commit is contained in:
Joris Vink 2018-03-30 13:47:32 +02:00
parent 4cfdda290f
commit cb206a589a
1 changed files with 6 additions and 1 deletions

View File

@ -1691,7 +1691,12 @@ cli_build_flags_common(struct buildopt *bopt, struct cli_buf *buf)
char *data;
cli_buf_appendf(buf, "-fPIC -Isrc -Isrc/includes ");
cli_buf_appendf(buf, "-I%s/include ", PREFIX);
if (bopt->single_binary == 0)
cli_buf_appendf(buf, "-I%s/include ", PREFIX);
else
cli_buf_appendf(buf, "-I%s/include ", bopt->kore_source);
#if defined(__MACH__)
/* Add default openssl include path from homebrew / ports under OSX. */
cli_buf_appendf(buf, "-I/opt/local/include ");