mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 01:11:06 +00:00
e317eca9a5
GCC 6 defaults to '-std=gnu11' for the C language, which has different semantics for inline functions and triggers build errors. Fixes #2385
28 lines
911 B
Makefile
28 lines
911 B
Makefile
FUSE_EXT2_PORT_DIR := $(call select_from_ports,fuse-ext2)
|
|
FUSE_EXT2_DIR = $(FUSE_EXT2_PORT_DIR)/src/lib/fuse-ext2
|
|
E2FSPROGS_DIR = $(FUSE_EXT2_DIR)/e2fsprogs-1.41.12.newgit
|
|
EXT2FS_DIR = $(E2FSPROGS_DIR)/ext2fs
|
|
ET_DIR = $(E2FSPROGS_DIR)/et
|
|
|
|
FILTER_OUT = bmove.c dosio.c irel_ma.c nt_io.c tdbtool.c
|
|
SRC_C = $(filter-out $(FILTER_OUT), $(notdir $(wildcard $(EXT2FS_DIR)/*.c)))
|
|
SRC_C += $(notdir $(wildcard $(ET_DIR)/*.c))
|
|
|
|
INC_DIR += $(REP_DIR)/include/fuse-ext2 \
|
|
$(REP_DIR)/src/lib/fuse-ext2 \
|
|
$(FUSE_EXT2_PORT_DIR)/include/fuse-ext2 \
|
|
$(ET_DIR)
|
|
|
|
CC_OPT += -DHAVE_CONFIG_H -D__BSD_VISIBLE -DENABLE_DEBUG
|
|
|
|
CC_OPT += -Wno-unused-function -Wno-unused-variable \
|
|
-Wno-unused-but-set-variable -Wno-cpp \
|
|
-Wno-maybe-uninitialized -Wno-uninitialized
|
|
|
|
CC_C_OPT += -std=gnu89
|
|
|
|
LIBS += libc
|
|
|
|
vpath %.c $(EXT2FS_DIR)
|
|
vpath %.c $(ET_DIR)
|