From f828fc02d5985c92fd5768f0ab142efab9bf62a4 Mon Sep 17 00:00:00 2001 From: Aapo Talvensaari Date: Wed, 24 Apr 2024 23:55:15 +0300 Subject: [PATCH] fix(build): snappy on macos was failing to build because of wrong extension Signed-off-by: Aapo Talvensaari --- build/BUILD.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/BUILD.bazel b/build/BUILD.bazel index 865db47cdfe4..7edee81d91d6 100644 --- a/build/BUILD.bazel +++ b/build/BUILD.bazel @@ -154,7 +154,7 @@ kong_directory_genrule( chmod -R "+rw" ${BUILD_DESTDIR}/openresty/luajit SNAPPY=${WORKSPACE_PATH}/$(dirname $(echo '$(locations @snappy//:snappy)' | awk '{print $1}')) - cp ${SNAPPY}/libsnappy.so ${BUILD_DESTDIR}/kong/lib + cp ${SNAPPY}/libsnappy.${libext} ${BUILD_DESTDIR}/kong/lib LUAROCKS=${WORKSPACE_PATH}/$(dirname '$(location @luarocks//:luarocks_make)')/luarocks_tree cp -r ${LUAROCKS}/. ${BUILD_DESTDIR}/.