Revert "tty: hvc: Fix data abort due to race in hvc_open"
[linux/fpc-iii.git] / scripts / gcc-plugins / Makefile
blob80f354289eeb9423e5b6f0cb40845682e371668d
1 # SPDX-License-Identifier: GPL-2.0
2 GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin)
4 HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++98 -fno-rtti
5 HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb
6 HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable -Wno-c++11-compat
7 HOST_EXTRACXXFLAGS += -Wno-format-diag
9 $(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h
10 quiet_cmd_create_randomize_layout_seed = GENSEED $@
11 cmd_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)
15 targets = randomize_layout_seed.h randomize_layout_hash.h
17 hostcxxlibs-y := $(foreach p,$(GCC_PLUGIN),$(if $(findstring /,$(p)),,$(p)))
18 always-y := $(hostcxxlibs-y)
20 $(foreach p,$(hostcxxlibs-y:%.so=%),$(eval $(p)-objs := $(p).o))
22 clean-files += *.so