mk: compilation fixes
Missing _GNU_SOURCE define for compilation of a number of files. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
parent
df24042233
commit
e49680a87e
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user