mk: build with _GNU_SOURCE defined by default
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 4 Oct 2018 10:20:33 +0000 (11:20 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Oct 2018 09:28:27 +0000 (11:28 +0200)
commit5d7b673d5fd6663b20c675dd382d9fb43b42af18
tree8cb3ffb659e34cc2d7eadda1880be3d6be885fa4
parent739e13bcc98f562d3301f808ec76507ebae82e63
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>
43 files changed:
app/meson.build
app/test-pmd/Makefile
buildtools/pmdinfogen/pmdinfogen.c
drivers/bus/dpaa/Makefile
drivers/bus/dpaa/meson.build
drivers/bus/fslmc/meson.build
drivers/bus/pci/linux/Makefile
drivers/bus/pci/meson.build
drivers/crypto/dpaa2_sec/Makefile
drivers/crypto/dpaa_sec/Makefile
drivers/mempool/dpaa/Makefile
drivers/meson.build
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_socket.c
drivers/net/softnic/conn.c
examples/cmdline/Makefile
examples/ethtool/ethtool-app/Makefile
examples/ip_pipeline/conn.c
examples/l2fwd-cat/Makefile
examples/l2fwd-cat/meson.build
examples/load_balancer/Makefile
examples/meson.build
examples/performance-thread/l3fwd-thread/main.c
examples/performance-thread/pthread_shim/main.c
examples/performance-thread/pthread_shim/pthread_shim.c
examples/qos_sched/Makefile
examples/tep_termination/Makefile
examples/vhost/Makefile
examples/vhost_crypto/Makefile
examples/vhost_crypto/meson.build
examples/vhost_scsi/Makefile
examples/vhost_scsi/meson.build
lib/librte_cmdline/Makefile
lib/librte_cmdline/cmdline.c
lib/librte_eal/bsdapp/eal/Makefile
lib/librte_eal/linuxapp/eal/Makefile
lib/librte_eal/meson.build
lib/librte_pdump/Makefile
lib/librte_sched/Makefile
lib/meson.build
mk/target/generic/rte.vars.mk
test/test/Makefile
test/test/meson.build