mirror of https://github.com/dynup/kpatch
kpatch-build/Makefile: Skip build insn/plugin with -Wconversion
Skip building insn/* on x86 and gcc-plugin on Power with -Wconversion, -Wno-sign-converion flags. Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
This commit is contained in:
parent
4e4a8d99da
commit
a0c608de70
|
@ -13,12 +13,14 @@ SOURCES = create-diff-object.c kpatch-elf.c \
|
||||||
ifeq ($(ARCH),x86_64)
|
ifeq ($(ARCH),x86_64)
|
||||||
SOURCES += insn/insn.c insn/inat.c
|
SOURCES += insn/insn.c insn/inat.c
|
||||||
INSN = insn/insn.o insn/inat.o
|
INSN = insn/insn.o insn/inat.o
|
||||||
|
insn/%.o: CFLAGS := $(filter-out -Wconversion, $(CFLAGS))
|
||||||
else ifeq ($(ARCH),ppc64le)
|
else ifeq ($(ARCH),ppc64le)
|
||||||
SOURCES += gcc-plugins/ppc64le-plugin.c
|
SOURCES += gcc-plugins/ppc64le-plugin.c
|
||||||
PLUGIN = gcc-plugins/ppc64le-plugin.so
|
PLUGIN = gcc-plugins/ppc64le-plugin.so
|
||||||
TARGETS += $(PLUGIN)
|
TARGETS += $(PLUGIN)
|
||||||
GCC_PLUGINS_DIR := $(shell gcc -print-file-name=plugin)
|
GCC_PLUGINS_DIR := $(shell gcc -print-file-name=plugin)
|
||||||
PLUGIN_CFLAGS = -shared $(CFLAGS) -I$(GCC_PLUGINS_DIR)/include \
|
PLUGIN_CFLAGS := $(filter-out -Wconversion, $(CFLAGS))
|
||||||
|
PLUGIN_CFLAGS += -shared -I$(GCC_PLUGINS_DIR)/include \
|
||||||
-Igcc-plugins -fPIC -fno-rtti -O2 -Wall
|
-Igcc-plugins -fPIC -fno-rtti -O2 -Wall
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue