freebsd-dev/lib/liblutok/Makefile
John Baldwin 42fb28cef4 Explicitly set CXXSTD to c++11 for old C++ code using std::auto_ptr<>.
GCC 12 defaults to C++17 which removes (not just deprecates)
std::auto_ptr<>.  Trying to use CXXSTD of c++03 doesn't work with
libc++ headers, but c++11 does.

Reviewed by:	brooks, imp, emaste
Differential Revision:	https://reviews.freebsd.org/D37531
2022-12-04 16:25:21 -08:00

28 lines
419 B
Makefile

# $FreeBSD$
LIB_CXX= lutok
INTERNALLIB=
LIBADD= lua
.PATH: ${SRCTOP}/contrib/lutok
SRCS= c_gate.cpp \
debug.cpp \
exceptions.cpp \
operations.cpp \
stack_cleaner.cpp \
state.cpp
CFLAGS+= -I${SRCTOP}/contrib/lutok/include \
-I${SRCTOP}/lib/liblua \
-I${SRCTOP}/contrib/lua/src
WARNS?= 3
SHLIB_MAJOR= 0
# lutok uses auto_ptr
CFLAGS+= -Wno-deprecated-declarations
CXXSTD= c++11
.include <bsd.lib.mk>