From dfa7a919e55bc29d9c3db66a0616f954a5c3fec7 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Sun, 24 Mar 2024 01:27:05 +0700 Subject: [PATCH] nginx_build_script : somehow unslashed newline cause Luajit configure not passing --- nginx_build_script/build.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nginx_build_script/build.sh b/nginx_build_script/build.sh index 9cc7e80..99f42cb 100644 --- a/nginx_build_script/build.sh +++ b/nginx_build_script/build.sh @@ -56,13 +56,13 @@ cmake --build . --config Release --target brotlienc mkdir $HOMEDIRECTORY/nginx-lua && cd $HOMEDIRECTORY/nginx-lua mkdir -p /opt/nginx-lua-module/ -git clone https://github.com/openresty/lua-resty-core -git clone https://github.com/openresty/lua-resty-lrucache -git clone https://github.com/openresty/luajit2 +git clone https://github.com/openresty/lua-resty-core $HOMEDIRECTORY/nginx-lua/lua-resty-core +git clone https://github.com/openresty/lua-resty-lrucache $HOMEDIRECTORY/nginx-lua/lua-resty-lrucache +git clone https://github.com/openresty/luajit2 $HOMEDIRECTORY/nginx-lua/luajit2 -cd luajit2 && make install PREFIX=/opt/nginx-lua-module/luajit2 && cd .. -cd lua-resty-core && make install PREFIX=/opt/nginx-lua-module/ && cd .. -cd lua-resty-lrucache && make install PREFIX=/opt/nginx-lua-module/ && cd .. +cd $HOMEDIRECTORY/nginx-lua/luajit2 && make && make install PREFIX=/opt/nginx-lua-module/luajit2 +cd $HOMEDIRECTORY/nginx-lua/lua-resty-core && make install PREFIX=/opt/nginx-lua-module/ +cd $HOMEDIRECTORY/nginx-lua/lua-resty-lrucache && make install PREFIX=/opt/nginx-lua-module/ export LUAJIT_LIB=/opt/nginx-lua-module/luajit2/lib export LUAJIT_INC=/opt/nginx-lua-module/luajit2/include/luajit-2.1 @@ -76,7 +76,7 @@ cd $HOMEDIRECTORY/nginx ./auto/configure \ --with-cc=c++ \ --with-cc-opt="-I../boringssl/include -x c" \ ---with-ld-opt="-L../boringssl/build/ssl -L../boringssl/build/crypto" \ +--with-ld-opt="-L../boringssl/build/ssl -L../boringssl/build/crypto -Wl,-rpath,$LUAJIT_LIB" \ --prefix=/usr/share/nginx \ --conf-path=/etc/nginx/nginx.conf \ --http-log-path=/var/log/nginx/access.log \