summaryrefslogtreecommitdiff
path: root/examples/ethtool
diff options
context:
space:
mode:
authorAnatoly Burakov <anatoly.burakov@intel.com>2018-10-04 11:20:33 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-10-22 11:28:27 +0200
commit5d7b673d5fd6663b20c675dd382d9fb43b42af18 (patch)
tree8cb3ffb659e34cc2d7eadda1880be3d6be885fa4 /examples/ethtool
parent739e13bcc98f562d3301f808ec76507ebae82e63 (diff)
downloaddpdk-5d7b673d5fd6663b20c675dd382d9fb43b42af18.zip
dpdk-5d7b673d5fd6663b20c675dd382d9fb43b42af18.tar.gz
dpdk-5d7b673d5fd6663b20c675dd382d9fb43b42af18.tar.xz
mk: build with _GNU_SOURCE defined by default
We use _GNU_SOURCE all over the place, but often times we miss defining it, resulting in broken builds on musl. Rather than fixing every library's and driver's and application's makefile, fix it by simply defining _GNU_SOURCE by default for all builds. Remove all usages of _GNU_SOURCE in source files and makefiles, and also fixup a couple of instances of using __USE_GNU instead of _GNU_SOURCE. Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Diffstat (limited to 'examples/ethtool')
-rw-r--r--examples/ethtool/ethtool-app/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ethtool/ethtool-app/Makefile b/examples/ethtool/ethtool-app/Makefile
index 4cd9efd..9ecfc0b 100644
--- a/examples/ethtool/ethtool-app/Makefile
+++ b/examples/ethtool/ethtool-app/Makefile
@@ -16,7 +16,7 @@ APP = ethtool
# all source are stored in SRCS-y
SRCS-y := main.c ethapp.c
-CFLAGS += -O3 -D_GNU_SOURCE -pthread -I$(SRCDIR)/../lib
+CFLAGS += -O3 -pthread -I$(SRCDIR)/../lib
CFLAGS += $(WERROR_FLAGS)
LDLIBS += -L$(subst ethtool-app,lib,$(RTE_OUTPUT))/lib