-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/kore: fix build on armv7 and clean up
- fix a warning about a wrong formatting specifier - exorcise -Werror so future warnings do not break the build - as a result, simplify Makefile - switch to C11 to avoid some warnings - reinstate %%OPENSSLINC%% patch bits dropped in previous commit - patch in %%LOCALBASE%% correctly MFH: 2023Q4
- Loading branch information
1 parent
4d8e2de
commit bd7b56a
Showing
6 changed files
with
83 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/cli.c.orig 2022-08-22 11:18:44 UTC | ||
+++ src/cli.c | ||
@@ -867,6 +867,8 @@ cli_ldflags(int argc, char **argv) | ||
cli_kore_load_file("linker", NULL, &p, &len); | ||
printf("%.*s ", (int)len, p); | ||
|
||
+ printf("-I%%OPENSSLINC%% "); | ||
+ | ||
#if defined(__MACH__) | ||
printf("-dynamiclib -undefined suppress -flat_namespace "); | ||
#else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/python.c.orig 2023-11-17 22:08:08 UTC | ||
+++ src/python.c | ||
@@ -4828,7 +4828,7 @@ pyhttp_iterobj_next(struct pyhttp_iterobj *iterobj) | ||
} | ||
|
||
kore_buf_reset(&iterobj->buf); | ||
- kore_buf_appendf(&iterobj->buf, "%lx\r\n", length); | ||
+ kore_buf_appendf(&iterobj->buf, "%zx\r\n", length); | ||
kore_buf_append(&iterobj->buf, ptr, length); | ||
kore_buf_appendf(&iterobj->buf, "\r\n"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- tools/kore-serve/conf/build.conf.orig 2022-08-22 11:18:44 UTC | ||
+++ tools/kore-serve/conf/build.conf | ||
@@ -2,7 +2,6 @@ single_binary=yes | ||
kore_source=../../ | ||
kore_flavor=NOTLS=1 | ||
|
||
-cflags=-std=c99 -Werror | ||
cflags=-Wall -Wmissing-declarations -Wshadow | ||
cflags=-Wstrict-prototypes -Wmissing-prototypes | ||
cflags=-Wpointer-arith -Wcast-qual -Wsign-compare |