From: Bruce Richardson Date: Tue, 11 Feb 2014 12:10:16 +0000 (+0000) Subject: mk: compilation fixes X-Git-Tag: spdx-start~11048 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e49680a87e0623d7c10bddde757042f784e4097d;p=dpdk.git mk: compilation fixes Missing _GNU_SOURCE define for compilation of a number of files. Signed-off-by: Bruce Richardson --- diff --git a/examples/cmdline/Makefile b/examples/cmdline/Makefile index 5d203d0fa1..8412131716 100644 --- a/examples/cmdline/Makefile +++ b/examples/cmdline/Makefile @@ -46,5 +46,6 @@ SRCS-y := main.c commands.c parse_obj_list.c CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +CFLAGS_parse_obj_list.o := -D_GNU_SOURCE include $(RTE_SDK)/mk/rte.extapp.mk diff --git a/examples/load_balancer/Makefile b/examples/load_balancer/Makefile index d4c7307da9..4fe0625832 100644 --- a/examples/load_balancer/Makefile +++ b/examples/load_balancer/Makefile @@ -46,6 +46,7 @@ SRCS-y := main.c config.c init.c runtime.c CFLAGS += -O3 -g CFLAGS += $(WERROR_FLAGS) +CFLAGS_config.o := -D_GNU_SOURCE # workaround for a gcc bug with noreturn attribute # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603 diff --git a/examples/qos_sched/Makefile b/examples/qos_sched/Makefile index f8f12dcc5b..b91fe37231 100755 --- a/examples/qos_sched/Makefile +++ b/examples/qos_sched/Makefile @@ -51,6 +51,8 @@ SRCS-y := main.c args.c init.c app_thread.c cfg_file.c cmdline.c stats.c CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +CFLAGS_args.o := -D_GNU_SOURCE +CFLAGS_cfg_file.o := -D_GNU_SOURCE LDLIBS += -lrte_sched diff --git a/lib/librte_sched/Makefile b/lib/librte_sched/Makefile index 474a0447e8..42d805681e 100644 --- a/lib/librte_sched/Makefile +++ b/lib/librte_sched/Makefile @@ -39,6 +39,8 @@ LIB = librte_sched.a CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +CFLAGS_rte_red.o := -D_GNU_SOURCE + # # all source are stored in SRCS-y #