diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2019-04-22 18:38:54 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2019-04-22 18:38:54 +0000 |
commit | 1109b774513f471d3b62ea220243c8e14d482f03 (patch) | |
tree | f1a57d59d538f36ed12d9046fe77a1c4c34dfb41 /lib/libc++ | |
parent | 36d37160640d2d0cac3e87fc68c99aaba8dc75ba (diff) | |
download | src-1109b774513f471d3b62ea220243c8e14d482f03.tar.gz src-1109b774513f471d3b62ea220243c8e14d482f03.zip |
Rework CXXSTD setting via r345708
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)
Notes
Notes:
svn path=/head/; revision=346574
Diffstat (limited to 'lib/libc++')
-rw-r--r-- | lib/libc++/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile index d83c4f81c016..f8c8da4f2035 100644 --- a/lib/libc++/Makefile +++ b/lib/libc++/Makefile @@ -76,7 +76,7 @@ CFLAGS+= -nostdinc++ CFLAGS+= -nostdlib CFLAGS+= -D_LIBCPP_BUILDING_LIBRARY CFLAGS+= -DLIBCXXRT -CXXSTD= c++11 +CXXSTD?= c++11 LIBADD+= cxxrt INCSGROUPS= STD EXP EXT |