lua-nginx-module icon indicating copy to clipboard operation
lua-nginx-module copied to clipboard

config: doesn't set flags for Darwin arm64

Open Schamschula opened this issue 3 years ago • 1 comments

Under MacPorts I ran into the following: for both nginx 1.22.0 (with static module) and nginx-devel 1.23.0 (with dynamic module) lua-nginx-module-0.10.21 fails to add the flags for arm64 machines. A quick patch

--- config.orig	2022-03-02 00:54:22.000000000 -0600
+++ config	2022-06-23 19:05:00.000000000 -0500
@@ -94,7 +94,7 @@
     case "$NGX_PLATFORM" in
         Darwin:*)
             case "$NGX_MACHINE" in
-                amd64 | x86_64 | i386)
+                amd64 | arm64 | x86_64 | i386)
                     echo "adding extra linking options needed by LuaJIT on $NGX_MACHINE"
                     luajit_ld_opt="$luajit_ld_opt -pagezero_size 10000 -image_base 100000000"
                     ngx_feature_libs="$ngx_feature_libs -pagezero_size 10000 -image_base 100000000"

Schamschula avatar Jun 24 '22 00:06 Schamschula