BUG/MINOR: contrib/modsecurity: BSD build fix
previous version introduced in the last commit was not the correct one.
This commit is contained in:
parent
a81ff60454
commit
0f4df640d2
|
@ -2,7 +2,7 @@ DESTDIR =
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
BINDIR = $(PREFIX)/bin
|
BINDIR = $(PREFIX)/bin
|
||||||
|
|
||||||
CC = gcc
|
CC ?= gcc
|
||||||
LD = $(CC)
|
LD = $(CC)
|
||||||
|
|
||||||
ifeq ($(MODSEC_INC),)
|
ifeq ($(MODSEC_INC),)
|
||||||
|
@ -25,9 +25,17 @@ ifeq ($(LIBXML_INC),)
|
||||||
LIBXML_INC := /usr/include/libxml2
|
LIBXML_INC := /usr/include/libxml2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS = -g -Wall -pthread
|
ifeq ($(EVENT_LIB),)
|
||||||
LDFLAGS += -lpthread -levent -levent_pthreads -lcurl -lapr-1 -laprutil-1 -lxml2 -lpcre -lyajl
|
EVENT_LIB := -levent
|
||||||
INCS += -I../../include -I../../ebtree -I$(MODSEC_INC) -I$(APACHE2_INC) -I$(APR_INC) -I$(LIBXML_INC)
|
endif
|
||||||
|
|
||||||
|
ifeq ($(EVENT_INC),)
|
||||||
|
EVENT_INC := /usr/include
|
||||||
|
endif
|
||||||
|
|
||||||
|
CFLAGS += -g -Wall -pthread
|
||||||
|
LDFLAGS += -lpthread $(EVENT_LIB) -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) -I$(EVENT_INC)
|
||||||
LIBS =
|
LIBS =
|
||||||
|
|
||||||
OBJS = spoa.o modsec_wrapper.o
|
OBJS = spoa.o modsec_wrapper.o
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#ifndef __SPOA_H__
|
#ifndef __SPOA_H__
|
||||||
#define __SPOA_H__
|
#define __SPOA_H__
|
||||||
|
|
||||||
#include <sys/queue.h>
|
#undef LIST_HEAD
|
||||||
|
|
||||||
#include <event2/util.h>
|
#include <event2/util.h>
|
||||||
#include <event2/event.h>
|
#include <event2/event.h>
|
||||||
|
|
Loading…
Reference in New Issue