@@ -149,6 +149,7 @@ CONFIGURE_OPTIONS = [
149
149
"--with-ld-opt=\"-L$$EXT_BUILD_DEPS$$/pcre/lib\"",
150
150
"--with-ld-opt=\"-L$$EXT_BUILD_DEPS$$/openssl/lib\"",
151
151
"--with-ld-opt=\"-L$$EXT_BUILD_DEPS$$/luajit/lib\"",
152
+ "--with-ld-opt=\"-L$$EXT_BUILD_DEPS$$/lib\"",
152
153
# Here let's try not having --disable-new-dtags; --disable-new-dtags creates rpath instead of runpath
153
154
# note rpath can't handle indirect dependency (nginx -> luajit -> dlopen("other")), so each indirect
154
155
# dependency should have its rpath set (luajit, libxslt etc); on the other side, rpath is not
@@ -168,7 +169,6 @@ CONFIGURE_OPTIONS = [
168
169
"--add-module=$$EXT_BUILD_ROOT$$/external/lua-kong-nginx-module/stream",
169
170
"--add-module=$$EXT_BUILD_ROOT$$/external/lua-resty-lmdb",
170
171
"--add-module=$$EXT_BUILD_ROOT$$/external/lua-resty-events",
171
- "--add-module=$$EXT_BUILD_ROOT$$/external/ngx_brotli",
172
172
] + select({
173
173
"@kong//:aarch64-linux-anylibc-cross": [
174
174
"--crossbuild=Linux:aarch64",
@@ -230,6 +230,11 @@ CONFIGURE_OPTIONS = [
230
230
"--group=nobody",
231
231
],
232
232
"//conditions:default": [],
233
+ }) + select({
234
+ "@kong//:brotli_flag": [
235
+ "--add-module=$$EXT_BUILD_ROOT$$/external/ngx_brotli",
236
+ ],
237
+ "//conditions:default": [],
233
238
}) + wasmx_configure_options
234
239
235
240
# TODO: set prefix to populate pid_path, conf_path, log_path etc
@@ -259,10 +264,10 @@ configure_make(
259
264
configure_options = CONFIGURE_OPTIONS,
260
265
data = [
261
266
"@lua-kong-nginx-module//:all_srcs",
262
- "@lua-resty-lmdb//:all_srcs",
263
267
"@lua-resty-events//:all_srcs",
264
- "@openresty_binding //:all_srcs",
268
+ "@lua-resty-lmdb //:all_srcs",
265
269
"@ngx_brotli//:all_srcs",
270
+ "@openresty_binding//:all_srcs",
266
271
] + select({
267
272
"@kong//:wasmx_flag": [
268
273
"@ngx_wasm_module//:all_srcs",
@@ -284,9 +289,9 @@ configure_make(
284
289
],
285
290
visibility = ["//visibility:public"],
286
291
deps = [
287
- "@pcre",
288
292
"@openresty//:luajit",
289
- "@openssl//:openssl",
293
+ "@openssl",
294
+ "@pcre",
290
295
] + select({
291
296
"@kong//:any-cross": [
292
297
"@cross_deps_zlib//:zlib",
@@ -299,5 +304,11 @@ configure_make(
299
304
"@cross_deps_libxcrypt//:libxcrypt",
300
305
],
301
306
"//conditions:default": [],
307
+ }) + select({
308
+ "@kong//:brotli_flag": [
309
+ "@brotli//:brotlicommon",
310
+ "@brotli//:brotlienc",
311
+ ],
312
+ "//conditions:default": [],
302
313
}),
303
314
)
0 commit comments