Skip to content

Commit 695c1ee

Browse files
authored
chore: add new grpc_engine_path during the refactor of grpc-client-nginx-module (#247)
Signed-off-by: spacewander <[email protected]>
1 parent f33ddb0 commit 695c1ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build-apisix-base.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,13 @@ cc_opt=${cc_opt:-}
9797
ld_opt=${ld_opt:-}
9898
luajit_xcflags=${luajit_xcflags:="-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT"}
9999
no_pool_patch=${no_pool_patch:-}
100+
# TODO: remove old NGX_HTTP_GRPC_CLI_ENGINE_PATH once we have released a new
101+
# version of grpc-client-nginx-module
102+
grpc_engine_path="-DNGX_GRPC_CLI_ENGINE_PATH=$OR_PREFIX/libgrpc_engine.so -DNGX_HTTP_GRPC_CLI_ENGINE_PATH=$OR_PREFIX/libgrpc_engine.so"
100103

101104
cd openresty-${or_ver} || exit 1
102105
./configure --prefix="$OR_PREFIX" \
103-
--with-cc-opt="-DAPISIX_BASE_VER=$version -DNGX_HTTP_GRPC_CLI_ENGINE_PATH=$OR_PREFIX/libgrpc_engine.so $cc_opt" \
106+
--with-cc-opt="-DAPISIX_BASE_VER=$version $grpc_engine_path $cc_opt" \
104107
--with-ld-opt="-Wl,-rpath,$OR_PREFIX/wasmtime-c-api/lib $ld_opt" \
105108
$debug_args \
106109
--add-module=../mod_dubbo-${mod_dubbo_ver} \

0 commit comments

Comments
 (0)