Fix lua installation (#57)

* fix wrong type

* for testing

* add brotli

* add brotli

* try only adding brotli to the libraries list

* try add brotli to the libdirs

* remove unnecessary lib

* return the main tag

---------

Co-authored-by: wiaamm <wiaamm@checkpoint.com>
This commit is contained in:
wiaam-mhameed
2026-01-15 13:51:26 +02:00
committed by GitHub
parent 5dfa150635
commit 3574f2ba19
2 changed files with 3 additions and 3 deletions

View File

@@ -364,7 +364,7 @@ static int lua_send_body(lua_State *L) {
} }
if (body_len <= 8 * 1024) { if (body_len <= 8 * 1024) {
HttpBody http_chunks; NanoHttpBody http_chunks;
http_chunks.bodies_count = 1; http_chunks.bodies_count = 1;
nano_str_t chunk; nano_str_t chunk;
@@ -400,7 +400,7 @@ static int lua_send_body(lua_State *L) {
num_chunks = 10000; num_chunks = 10000;
} }
HttpBody http_chunks; NanoHttpBody http_chunks;
http_chunks.bodies_count = num_chunks; http_chunks.bodies_count = num_chunks;
http_chunks.data = (nano_str_t*)malloc(num_chunks * sizeof(nano_str_t)); http_chunks.data = (nano_str_t*)malloc(num_chunks * sizeof(nano_str_t));

View File

@@ -51,7 +51,7 @@ build = {
"external/" "external/"
}, },
defines = { "_GNU_SOURCE", "ZLIB_CONST" }, defines = { "_GNU_SOURCE", "ZLIB_CONST" },
libraries = { "pthread", "z", "rt", "stdc++" }, libraries = { "pthread", "z", "rt", "stdc++", "brotlienc", "brotlidec", "brotlicommon" },
ldflags = { "-static-libstdc++", "-static-libgcc" } ldflags = { "-static-libstdc++", "-static-libgcc" }
} }
} }