mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 04:59:02 -04:00
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:
parent
4cfdda290f
commit
cb206a589a
@ -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 ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user