package/iptraf-ng: really add _GNU_SOURCE in CFLAGS
PATCH 1/1 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
--- package/iptraf-ng/iptraf-ng.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/iptraf-ng/iptraf-ng.mk +3 -1
@@ -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))
Signature · 1 line
2.5.5
Thomas Petazzoni
AppliedPATCH 1/1 package/iptraf-ng: really add _GNU_SOURCE in CFLAGS
Hello,
Quoted 7 lines · Romain Naour
When iptraf-ng is build with musl, it needs
_GNU_SOURCEin CFLAGS to define the content of "struct tcphdr".iptraf-ng.mk try to add
_GNU_SOURCEin CFLAGS but it's not taken into account.Add it using
IPTRAF_NG_CONF_ENVinstead ofIPTRAF_NG_MAKE_ENV.
Quoted 7 lines
Fixes:
http://autobuild.buildroot.net/results/a1b/a1b18f2e3d075d349c19536a7c5553f24b75a323Signed-off-by Romain Naour <[email protected]>--- package/iptraf-ng/iptraf-ng.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com