BUG/MINOR: contrib/mod_security: fix build on FreeBSD

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
This commit is contained in:
David CARLIER 2017-05-03 10:23:08 +01:00 committed by Willy Tarreau
parent b418c1228c
commit 8abbd3daa7
2 changed files with 3 additions and 1 deletions

View 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 =

View 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>