@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := haproxy
PKG_NAME := haproxy
PKG_VERSION := 2.0.0
PKG_VERSION := 2.0.0
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := haproxy-$( PKG_VERSION) .tar.gz
PKG_SOURCE := haproxy-$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://www.haproxy.org/download/2.0/src/
PKG_SOURCE_URL := https://www.haproxy.org/download/2.0/src/
@ -91,10 +91,14 @@ ENABLE_LUA:=y
ENABLE_REGPARM := n
ENABLE_REGPARM := n
i f e q ( $( CONFIG_TARGET_x 86) , y )
i f e q ( $( CONFIG_TARGET_x 86) , y )
ENABLE_REGPARM:= y
ENABLE_REGPARM:= y
e n d i f
e n d i f
LINUX_TARGET := linux-glibc
i f e q ( $( CONFIG_USE_UCLIBC ) , y )
LINUX_TARGET:= linux-uclibc
e l s e
LINUX_TARGET:= linux-glibc
e n d i f
i f e q ( $( BUILD_VARIANT ) , s s l )
i f e q ( $( BUILD_VARIANT ) , s s l )
ADDON += USE_OPENSSL = 1
ADDON += USE_OPENSSL = 1
@ -139,7 +143,7 @@ define Build/Compile
VERSION = " $( PKG_VERSION) " SUBVERS = " - $( PKG_RELEASE) " \
VERSION = " $( PKG_VERSION) " SUBVERS = " - $( PKG_RELEASE) " \
VERDATE = " $( shell date -d @$( SOURCE_DATE_EPOCH) '+%Y/%m/%d' ) " IGNOREGIT = 1 \
VERDATE = " $( shell date -d @$( SOURCE_DATE_EPOCH) '+%Y/%m/%d' ) " IGNOREGIT = 1 \
$( ADDON) \
$( ADDON) \
CFLAGS = " $( TARGET_CFLAGS) -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv -Wno-format-truncation -Wno-unused-label -Wno-sign-compare -Wno-unused-parameter -Wno-old-style-declaration -Wno-ignored-qualifiers -Wno-clobbered -Wno-missing-field-initializers -Wno-implicit-fallthrough -Wno-stringop-overflow -Wtype-limits -Wshift-negative-value -Wshift-overflow=2 -Wduplicated-cond -Wnull-dereference " \
CFLAGS = " $( TARGET_CFLAGS) -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv -Wno-format-truncation -Wno-unused-label -Wno-sign-compare -Wno-unused-parameter -Wno-old-style-declaration -Wno-ignored-qualifiers -Wno-clobbered -Wno-missing-field-initializers -Wno-implicit-fallthrough -Wno-stringop-overflow -Wno-cast-function-type -W type-limits -Wshift-negative-value -Wshift-overflow=2 -Wduplicated-cond -Wnull-dereference " \
LD = " $( TARGET_CC) " \
LD = " $( TARGET_CC) " \
LDFLAGS = " $( TARGET_LDFLAGS) -latomic " \
LDFLAGS = " $( TARGET_LDFLAGS) -latomic " \
EXTRA_OBJS = "contrib/prometheus-exporter/service-prometheus.o"
EXTRA_OBJS = "contrib/prometheus-exporter/service-prometheus.o"