eb384c24fd
When iptraf-ng is build with musl, it needs _GNU_SOURCE in CFLAGS to define the content of "struct tcphdr". iptraf-ng.mk try to add _GNU_SOURCE in CFLAGS but it's not taken into account. Add it using IPTRAF_NG_CONF_ENV instead of IPTRAF_NG_MAKE_ENV. Fixes: http://autobuild.buildroot.net/results/a1b/a1b18f2e3d075d349c19536a7c5553f24b75a323 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
20 lines
520 B
Makefile
20 lines
520 B
Makefile
################################################################################
|
|
#
|
|
# iptraf-ng
|
|
#
|
|
################################################################################
|
|
|
|
IPTRAF_NG_VERSION = 1.1.4
|
|
IPTRAF_NG_SITE = https://fedorahosted.org/releases/i/p/iptraf-ng
|
|
IPTRAF_NG_LICENSE = GPLv2+
|
|
IPTRAF_NG_LICENSE_FILES = LICENSE
|
|
IPTRAF_NG_DEPENDENCIES = ncurses
|
|
|
|
IPTRAF_NG_MAKE_ENV = \
|
|
NCURSES_LDFLAGS="-lpanel -lncurses"
|
|
|
|
IPTRAF_NG_CONF_ENV = \
|
|
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
|
|
|
|
$(eval $(autotools-package))
|