]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: Changed 51Degrees option to support V3.2
authorJames Rosewell <james@51degrees.com>
Fri, 18 Sep 2015 16:24:29 +0000 (17:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2015 10:14:11 +0000 (12:14 +0200)
Added support for city hash method, turned off multi threading support
and included maths library. Removed reference to compression library
which was never needed.

Makefile

index 74a4272627d0a220e852ce1fd97d355ae60b27fe..a7da80b56fa068fda3e4950b87ee6f9edab645e3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -625,11 +625,12 @@ ifneq ($(USE_51DEGREES),)
 51DEGREES_SRC =
 51DEGREES_INC = $(51DEGREES_SRC)
 51DEGREES_LIB = $(51DEGREES_SRC)
+OPTIONS_OBJS    += $(51DEGREES_LIB)/../cityhash/city.o
 OPTIONS_OBJS    += $(51DEGREES_LIB)/51Degrees.o
 OPTIONS_OBJS    += src/51d.o
-OPTIONS_CFLAGS  += -DUSE_51DEGREES $(if $(51DEGREES_INC),-I$(51DEGREES_INC))
+OPTIONS_CFLAGS  += -DUSE_51DEGREES -DFIFTYONEDEGREES_NO_THREADING $(if $(51DEGREES_INC),-I$(51DEGREES_INC))
 BUILD_OPTIONS   += $(call ignore_implicit,USE_51DEGREES)
-OPTIONS_LDFLAGS += $(if $(51DEGREES_LIB),-L$(51DEGREES_LIB)) -lz
+OPTIONS_LDFLAGS += $(if $(51DEGREES_LIB),-L$(51DEGREES_LIB)) -lm
 endif
 
 ifneq ($(USE_PCRE)$(USE_STATIC_PCRE)$(USE_PCRE_JIT),)