diff options
Diffstat (limited to 'tools/gcc-plugins/Makefile')
| -rw-r--r-- | tools/gcc-plugins/Makefile | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/gcc-plugins/Makefile b/tools/gcc-plugins/Makefile index d6edd745ce..2af28fe2b1 100644 --- a/tools/gcc-plugins/Makefile +++ b/tools/gcc-plugins/Makefile @@ -5,11 +5,15 @@ CXX=g++-9  PLUGBASE=`$(CXX) -print-file-name=plugin`  CPPFLAGS=-I$(PLUGBASE)/include -I$(PLUGBASE)/include/c-family +# NB: compiler flags must match those used to build gcc, otherwise inlining +# behavior is different and linker errors will result due to missing symbols +# (which should in fact be inlined) +  frr-format.so: frr-format.o -	$(CXX) -g -shared -o $@ $^ +	$(CXX) -fno-rtti -fno-exceptions -fasynchronous-unwind-tables -ggdb -shared -o $@ $^  frr-format.o: frr-format.c gcc-common.h -	$(CXX) -g $(CPPFLAGS) -fPIC -Wall -Wextra -Wno-unused-parameter -c -o $@ $< +	$(CXX) -fno-rtti -fno-exceptions -fasynchronous-unwind-tables -ggdb $(CPPFLAGS) -fPIC -Wall -Wextra -Wno-unused-parameter -c -o $@ $<  install:  	install -d $(DESTDIR)$(PLUGBASE)  | 
