]> git.ipfire.org Git - thirdparty/linux.git/blame - scripts/gcc-plugins/Makefile
Merge tag 'io_uring-5.7-2020-05-22' of git://git.kernel.dk/linux-block
[thirdparty/linux.git] / scripts / gcc-plugins / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
6b90bd4b
ER
2GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin)
3
77342a02
MY
4HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++98 -fno-rtti
5HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb
6HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable -Wno-c++11-compat
c7527373 7HOST_EXTRACXXFLAGS += -Wno-format-diag
6b90bd4b 8
313dd1b6
KC
9$(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h
10quiet_cmd_create_randomize_layout_seed = GENSEED $@
11cmd_create_randomize_layout_seed = \
12 $(CONFIG_SHELL) $(srctree)/$(src)/gen-random-seed.sh $@ $(objtree)/include/generated/randomize_layout_hash.h
13$(objtree)/$(obj)/randomize_layout_seed.h: FORCE
14 $(call if_changed,create_randomize_layout_seed)
15targets = randomize_layout_seed.h randomize_layout_hash.h
16
77342a02
MY
17hostcxxlibs-y := $(foreach p,$(GCC_PLUGIN),$(if $(findstring /,$(p)),,$(p)))
18always-y := $(hostcxxlibs-y)
6b90bd4b 19
77342a02 20$(foreach p,$(hostcxxlibs-y:%.so=%),$(eval $(p)-objs := $(p).o))
543c37cb 21
6b90bd4b 22clean-files += *.so