Skip to content

Commit f64ea2a

Browse files
authored
Merge pull request #3390 from arvedarved/buildsystem-fixes
Buildsystem fixes
2 parents 1362479 + de624f9 commit f64ea2a

File tree

6 files changed

+28
-26
lines changed

6 files changed

+28
-26
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ cppcheck:
6363
--enable=warning,style,performance,portability,unusedFunction,missingInclude \
6464
--inconclusive \
6565
--template="warning: {file},{line},{severity},{id},{message}" \
66-
-I headers -I . -I others -I src -I others/mbedtls/include \
66+
-I headers -I . -I $(top_srcdir)/others -I $(top_srcdir)/src -I $(top_srcdir)/others/mbedtls/include \
6767
--error-exitcode=1 \
6868
-i "src/parser/seclang-parser.cc" -i "src/parser/seclang-scanner.cc" \
6969
-i others \

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ AC_PREFIX_DEFAULT([/usr/local/modsecurity])
4242

4343

4444
# General automake options.
45-
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
45+
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
4646

4747

4848
# Check for dependencies (C++, AR, Lex, Yacc and Make)

others/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ libmbedtls_la_SOURCES = \
2828
mbedtls/library/sha1.c \
2929
mbedtls/library/platform_util.c
3030

31-
libmbedtls_la_CFLAGS = -DMBEDTLS_CONFIG_FILE=\"mbedtls/mbedtls_config.h\" -Imbedtls/include
31+
libmbedtls_la_CFLAGS = -DMBEDTLS_CONFIG_FILE=\"mbedtls/mbedtls_config.h\" -I$(top_srcdir)/others/mbedtls/include
3232
libmbedtls_la_CPPFLAGS =
3333
libmbedtls_la_LIBADD =

src/Makefile.am

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ libmodsecurity_includesub_actions_HEADERS = \
6868

6969

7070
noinst_HEADERS = \
71-
actions/*.h \
72-
actions/ctl/*.h \
73-
actions/data/*.h \
74-
actions/disruptive/*.h \
75-
actions/transformations/*.h \
76-
debug_log/*.h \
77-
audit_log/writer/*.h \
78-
collection/backend/*.h \
79-
operators/*.h \
80-
parser/*.h \
81-
request_body_processor/*.h \
82-
utils/*.h \
83-
variables/*.h \
84-
engine/*.h \
85-
*.h
71+
$(wildcard actions/*.h) \
72+
$(wildcard actions/ctl/*.h) \
73+
$(wildcard actions/data/*.h) \
74+
$(wildcard actions/disruptive/*.h) \
75+
$(wildcard actions/transformations/*.h) \
76+
$(wildcard debug_log/*.h) \
77+
$(wildcard audit_log/writer/*.h) \
78+
$(wildcard collection/backend/*.h) \
79+
$(wildcard operators/*.h) \
80+
$(wildcard parser/*.h) \
81+
$(wildcard request_body_processor/*.h) \
82+
$(wildcard utils/*.h) \
83+
$(wildcard variables/*.h) \
84+
$(wildcard engine/*.h) \
85+
$(wildcard *.h)
8686

8787

8888
ENGINES = \
@@ -308,13 +308,14 @@ libmodsecurity_la_CFLAGS =
308308

309309

310310
libmodsecurity_la_CPPFLAGS = \
311-
-I.. \
311+
-I$(top_srcdir) \
312+
-I$(top_builddir) \
312313
-g \
313-
-I../others \
314-
-I../others/mbedtls/include \
314+
-I$(top_srcdir)/others \
315+
-I$(top_srcdir)/others/mbedtls/include \
315316
-fPIC \
316317
-O3 \
317-
-I../headers \
318+
-I$(top_srcdir)/headers \
318319
$(CURL_CFLAGS) \
319320
$(GEOIP_CFLAGS) \
320321
$(GLOBAL_CPPFLAGS) \

test/Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ unit_tests_LDFLAGS = \
7272

7373
unit_tests_CPPFLAGS = \
7474
-Icommon \
75-
-I../ \
75+
-I$(top_srcdir)/ \
7676
-g \
7777
-I$(top_builddir)/headers \
7878
$(CURL_CFLAGS) \
@@ -127,7 +127,7 @@ regression_tests_LDFLAGS = \
127127

128128
regression_tests_CPPFLAGS = \
129129
-Icommon \
130-
-I../ \
130+
-I$(top_srcdir) \
131131
-g \
132132
-I$(top_builddir)/headers \
133133
$(CURL_CFLAGS) \
@@ -179,7 +179,7 @@ rules_optimization_LDFLAGS = \
179179

180180
rules_optimization_CPPFLAGS = \
181181
-Icommon \
182-
-I../ \
182+
-I$(top_srcdir)/ \
183183
-g \
184184
-I$(top_builddir)/headers \
185185
$(CURL_CFLAGS) \

tools/rules-check/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ modsec_rules_check_LDFLAGS = \
2626
$(LMDB_LDFLAGS) \
2727
$(LUA_LDFLAGS) \
2828
$(SSDEEP_LDFLAGS) \
29-
$(YAJL_LDFLAGS)
29+
$(YAJL_LDFLAGS) \
30+
$(LIBXML2_LDFLAGS)
3031

3132
modsec_rules_check_CPPFLAGS = \
3233
-I$(top_builddir)/headers \

0 commit comments

Comments
 (0)