package/iptraf-ng: really add _GNU_SOURCE in CFLAGS
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>
This commit is contained in:
parent
2277395172
commit
eb384c24fd
@ -11,7 +11,9 @@ IPTRAF_NG_LICENSE_FILES = LICENSE
|
||||
IPTRAF_NG_DEPENDENCIES = ncurses
|
||||
|
||||
IPTRAF_NG_MAKE_ENV = \
|
||||
NCURSES_LDFLAGS="-lpanel -lncurses" \
|
||||
NCURSES_LDFLAGS="-lpanel -lncurses"
|
||||
|
||||
IPTRAF_NG_CONF_ENV = \
|
||||
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
Loading…
Reference in New Issue
Block a user