mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
with libc++, which is also C++11. Also change one _Static_assert (which is really C11) back into static_assert, like upstream. This should help when compiling libcxxrt with newer versions of gcc, which refuse to recognize any form of static assertions, if not compiling for C++11 or higher. While here, add -nostdinc++ to CFLAGS, to prevent picking up any C++ headers outside the source tree.
29 lines
431 B
Makefile
29 lines
431 B
Makefile
# $FreeBSD$
|
|
|
|
SRCDIR= ${.CURDIR}/../../contrib/libcxxrt
|
|
|
|
SHLIB_MAJOR= 1
|
|
SHLIBDIR?= /lib
|
|
|
|
.PATH: ${SRCDIR}
|
|
|
|
LIB= cxxrt
|
|
|
|
SRCS+= libelftc_dem_gnu3.c\
|
|
terminate.cc\
|
|
dynamic_cast.cc\
|
|
memory.cc\
|
|
auxhelper.cc\
|
|
exception.cc\
|
|
stdexcept.cc\
|
|
typeinfo.cc\
|
|
guard.cc
|
|
|
|
WARNS= 0
|
|
CFLAGS+= -I${SRCDIR} -nostdinc++
|
|
.if empty(CXXFLAGS:M-std=*)
|
|
CXXFLAGS+= -std=c++11
|
|
.endif
|
|
VERSION_MAP= ${.CURDIR}/Version.map
|
|
|
|
.include <bsd.lib.mk>
|