@@ -25,20 +25,6 @@ install: install-software install-docs
2525
2626install-software : install-kernel-dep install-kernel-indep install-menu
2727
28-
29- # buster gcc (Debian 8.3.0-6) emits many warnings
30- # use at your own risk
31- ifeq ($(origin SUPPRESS_WARNINGS ) , undefined)
32- else
33- QUIETFLAGS ?=
34- QUIETFLAGS += -Wno-unused-label
35- QUIETFLAGS += -Wno-format-overflow
36- QUIETFLAGS += -Wno-format-truncation
37- QUIETFLAGS += -Wno-stringop-truncation
38- CXXQUIETFLAGS := $(QUIETFLAGS )
39- CXXQUIETFLAGS += -Wno-catch-value
40- endif
41-
4228ifeq ($(origin KERNELRELEASE ) , undefined)
4329MAKEFLAGS += --warn-undefined-variables
4430endif
@@ -258,11 +244,17 @@ INCLUDE += $(LIBTIRPC_CFLAGS)
258244# Compilation options. Perhaps some of these should come from Makefile.inc? (CXXFLAGS now does)
259245INTEGER_OVERFLOW_FLAGS := -fwrapv
260246OPT := -Os $(INTEGER_OVERFLOW_FLAGS )
261- DEBUG := $(DEBUG ) -g -Wall
247+ DEBUG := $(DEBUG ) -g -Wall -Wno-stringop-truncation
262248CFLAGS := $(INCLUDE ) $(OPT ) $(DEBUG ) $(EXTRA_DEBUG ) -DULAPI -std=gnu99 -fgnu89-inline -Werror=implicit-function-declaration $(CFLAGS ) $(CPPFLAGS )
263249CXXFLAGS := $(INCLUDE ) $(EXTRA_DEBUG ) -DULAPI $(DEBUG ) $(OPT ) -Woverloaded-virtual $(CXXFLAGS ) $(CPPFLAGS )
264250CXXFLAGS += $(call cxx-option, -Wno-psabi)
265251CXXFLAGS += $(call cxx-option, -std=gnu++11, -std=gnu++0x)
252+ # In Debian 11, any inclusion of <boost/python.hpp> leads to several
253+ # diagnostics from included headers about deprecated features. LinuxCNC does
254+ # not directly use these deprecated features, but it does use boost::python.
255+ # Silence the warnings just when they occur in files using boost/python.hpp by
256+ # adding SILENCE_BOOST_INTERNAL_DIAGNOSTICS_FLAGS to the object's EXTRAFLAGS
257+ SILENCE_BOOST_INTERNAL_DIAGNOSTICS_FLAGS = -DBOOST_ALLOW_DEPRECATED_HEADERS=1 -DBOOST_BIND_GLOBAL_PLACEHOLDERS=1
266258
267259CFLAGS += $(TOOL_NML_FLAG )
268260CXXFLAGS += $(TOOL_NML_FLAG )
@@ -645,7 +637,7 @@ install install-software install-docs:
645637
646638MENUS = ../share/menus/CNC.menu \
647639 ../share/desktop-directories/cnc.directory
648- install-menus install-menu : $(MENUS ) $(XDGDESKTOP )
640+ rip- install-menus rip- install-menu : $(MENUS ) $(XDGDESKTOP )
649641 mkdir -p $(HOME ) /.config/menus/applications-merged
650642 cp $< $(HOME ) /.config/menus/applications-merged
651643else
0 commit comments