42fb28cef4
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
28 lines
419 B
Makefile
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>
|