freebsd-src/usr.bin/dtc/Makefile
Jose Luis Duran f147cf0ee2 dtc: Ensure it is built in C++17 mode
Explicitly specify the C++ standard to be used in the Makefile.
This prevents macOS cross-builds from using the default gnu++98 and
fail.  This syncs dtc with upstream commit
39a58cfaab7d55c7975ebf905d859ba91a369fa0.

Reviewed by: emaste
Fixes: 29a55fd09b ("dtc: Sync with upstream commit 26a0fe5")
Differential Revision: https://reviews.freebsd.org/D42006
2023-09-29 09:26:51 -04:00

14 lines
192 B
Makefile

PROG_CXX=dtc
SRCS= dtc.cc input_buffer.cc string.cc dtb.cc fdt.cc checking.cc
MAN= dtc.1
WARNS?= 3
CXXFLAGS+= -fno-rtti -fno-exceptions
CXXSTD= c++17
NO_SHARED?=NO
.include <bsd.prog.mk>