1
1
mirror of https://github.com/openresty/headers-more-nginx-module synced 2024-11-11 20:35:56 +01:00
headers-more-nginx-module/util/build.sh

39 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# this file is mostly meant to be used by the author himself.
root=`pwd`
version=$1
home=~
force=$2
pcre2_opt=""
if [ "$WITHOUT_PCRE2" = "1" ]; then
pcre2_opt="--without-pcre2"
fi
#--with-cc=gcc46 \
ngx-build $force $version \
--with-ld-opt="-L$PCRE_LIB -Wl,-rpath,$PCRE_LIB:$LIBDRIZZLE_LIB" \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
--without-http_upstream_ip_hash_module \
--without-http_empty_gif_module \
--without-http_memcached_module \
--without-http_referer_module \
--without-http_autoindex_module \
--without-http_auth_basic_module \
--without-http_userid_module \
$pcre2_opt \
--with-http_realip_module \
--with-http_dav_module \
--add-module=$root/../eval-nginx-module \
--add-module=$root/../lua-nginx-module \
--add-module=$root/../echo-nginx-module \
--add-module=$root $opts \
--with-debug
#--add-module=$root/../ndk-nginx-module \
#--without-http_ssi_module # we cannot disable ssi because echo_location_async depends on it (i dunno why?!)