aboutsummaryrefslogtreecommitdiff
path: root/lib/libgcc_eh
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2019-04-22 18:38:54 +0000
committerEnji Cooper <ngie@FreeBSD.org>2019-04-22 18:38:54 +0000
commit1109b774513f471d3b62ea220243c8e14d482f03 (patch)
treef1a57d59d538f36ed12d9046fe77a1c4c34dfb41 /lib/libgcc_eh
parent36d37160640d2d0cac3e87fc68c99aaba8dc75ba (diff)
downloadsrc-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/libgcc_eh')
-rw-r--r--lib/libgcc_eh/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libgcc_eh/Makefile.inc b/lib/libgcc_eh/Makefile.inc
index 39cccec7e6d9..232f5d8d46fa 100644
--- a/lib/libgcc_eh/Makefile.inc
+++ b/lib/libgcc_eh/Makefile.inc
@@ -28,7 +28,7 @@ CXXFLAGS.${file}+= -fno-exceptions -funwind-tables
CFLAGS+= -I${UNWINDINCDIR} -I${.CURDIR} -D_LIBUNWIND_IS_NATIVE_ONLY
CXXFLAGS+= -fno-rtti
-CXXSTD= c++11
+CXXSTD?= c++11
STATIC_CXXFLAGS+= -fvisibility=hidden -fPIC
# Probably need to just move this earlier or use CXXFLAGS
.if ${MK_DIRDEPS_BUILD} == "yes"