mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Building with --enable-standalone-module was failing due the lack of the reference to the msc_json.c file inside the standalone/Makefile.am. This patch also place the dependency of the yajl to the nginx module config script.
47 lines
1004 B
Bash
47 lines
1004 B
Bash
#!/bin/sh
|
|
|
|
CFLAGS="$CFLAGS \
|
|
@APR_CFLAGS@ \
|
|
@APU_CFLAGS@ \
|
|
@APXS_CFLAGS@ \
|
|
@LIBXML2_CFLAGS@ \
|
|
@LUA_CFLAGS@ \
|
|
@MODSEC_EXTRA_CFLAGS@ \
|
|
@PCRE_CFLAGS@ \
|
|
@YAJL_CFLAGS@"
|
|
|
|
|
|
CORE_LIBS="$CORE_LIBS \
|
|
@APR_LINKLD@ \
|
|
@APU_LINKLD@ \
|
|
@APXS_CFLAGS@ \
|
|
@CURL_LDADD@ \
|
|
@LIBXML2_LDADD@ \
|
|
@LUA_LDADD@ \
|
|
@PCRE_LDADD@ \
|
|
@APXS_LIBS@ \
|
|
@YAJL_LIBS@"
|
|
|
|
ngx_addon_name=ngx_http_modsecurity
|
|
|
|
CORE_MODULES="$CORE_MODULES ngx_pool_context_module"
|
|
|
|
HTTP_AUX_FILTER_MODULES="ngx_http_modsecurity $HTTP_AUX_FILTER_MODULES"
|
|
|
|
NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
|
|
$ngx_addon_dir/ngx_http_modsecurity.c \
|
|
$ngx_addon_dir/apr_bucket_nginx.c \
|
|
$ngx_addon_dir/ngx_pool_context.c"
|
|
|
|
NGX_ADDON_DEPS="$NGX_ADDON_DEPS \
|
|
$ngx_addon_dir/apr_bucket_nginx.h \
|
|
$ngx_addon_dir/ngx_pool_context.h"
|
|
|
|
CORE_LIBS="$ngx_addon_dir/../../standalone/.libs/standalone.a $CORE_LIBS"
|
|
|
|
CORE_INCS="$CORE_INCS \
|
|
$ngx_addon_dir \
|
|
$ngx_addon_dir/../../standalone \
|
|
$ngx_addon_dir/../../apache2"
|
|
|