]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: contrib/mod_security: fix build on FreeBSD
authorDavid CARLIER <devnexen@gmail.com>
Wed, 3 May 2017 09:23:08 +0000 (10:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 May 2017 05:16:26 +0000 (07:16 +0200)
Fix linker flags settings since 3rd parties libraries are not in
/usr/lib
Plus libfuzzy needs to be added.
undef LIST_HEAD from event2 which conflicts with haproxy's

contrib/modsecurity/Makefile
contrib/modsecurity/spoa.h

index 72956f9e97cc05924fc29b626b44ff8994a98ba7..7853397cd15edd7cc6f36a06381dbb9b0438d72e 100644 (file)
@@ -26,7 +26,7 @@ LIBXML_INC := /usr/include/libxml2
 endif
 
 CFLAGS  = -g -Wall -pthread
-LDFLAGS = -lpthread  -levent -levent_pthreads -lcurl -lapr-1 -laprutil-1 -lxml2 -lpcre -lyajl
+LDFLAGS += -lpthread  -levent -levent_pthreads -lcurl -lapr-1 -laprutil-1 -lxml2 -lpcre -lyajl
 INCS += -I../../include -I../../ebtree -I$(MODSEC_INC) -I$(APACHE2_INC) -I$(APR_INC) -I$(LIBXML_INC)
 LIBS =
 
index daee6d233845ec37f57a2c160e72ea4417c879fe..d618f9bbe2e1a6eda0f3c14a046816e03c4dc017 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef __SPOA_H__
 #define __SPOA_H__
 
+#include <sys/queue.h>
+
 #include <event2/util.h>
 #include <event2/event.h>
 #include <event2/event_struct.h>