1109b77451
This change allows the user to once again override the C++ standard, restoring high-level pre-r345708 behavior. This also unbreaks building lib/ofed/libibnetdisc/Makefile with a non-C++11 capable compiler, e.g., g++ 4.2.1, as the library supported being built with older C++ standards. MFC after: 2 weeks MFC with: r345708 Reviewed by: emaste Reported by: jbeich Differential Revision: https://reviews.freebsd.org/D19895 (as part of a larger change)
28 lines
453 B
Makefile
28 lines
453 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PACKAGE= clibs
|
|
SRCDIR= ${SRCTOP}/contrib/libc++
|
|
|
|
LIB= c++fs
|
|
NO_PIC=
|
|
MK_PROFILE= no
|
|
|
|
.PATH: ${SRCDIR}/src/filesystem
|
|
|
|
SRCS+= directory_iterator.cpp
|
|
SRCS+= int128_builtins.cpp
|
|
SRCS+= operations.cpp
|
|
|
|
WARNS?= 0
|
|
CXXFLAGS+= ${PICFLAG}
|
|
CXXFLAGS+= -isystem ${SRCDIR}/include
|
|
CXXFLAGS+= -nostdinc++
|
|
CXXFLAGS+= -nostdlib
|
|
CXXFLAGS+= -D_LIBCPP_BUILDING_LIBRARY
|
|
CXXFLAGS+= -DLIBCXXRT
|
|
CXXSTD?= c++14
|
|
|
|
.include <bsd.lib.mk>
|