]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/iptraf-ng: really add _GNU_SOURCE in CFLAGS
authorRomain Naour <romain.naour@gmail.com>
Sat, 28 May 2016 13:15:52 +0000 (15:15 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 28 May 2016 13:51:00 +0000 (15:51 +0200)
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>
package/iptraf-ng/iptraf-ng.mk

index ea64e1dd236c3234976cef6b2aad8c13c4d8c276..a36c7089fb2ec13c59f430a2facf6e3119290354 100644 (file)
@@ -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))