Skip to content

Commit

Permalink
devel/freebsd-gcc9: Build with -std=c++11.
Browse files Browse the repository at this point in the history
This works around errors from clang from LLVM16 due to -Wregister
warnings that are fatal in the default C++ standard (C++17) used by
clang 16.
  • Loading branch information
bsdjhb committed Jul 4, 2023
1 parent 57ea9f9 commit 348c101
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devel/freebsd-gcc9/Makefile
Expand Up @@ -26,6 +26,8 @@ TARGETARCH= ${FLAVOR}
USES= compiler:c++11-lang cpe gmake iconv libtool makeinfo tar:xz
CPE_VENDOR= gnu

CXXFLAGS+= -std=c++11

PLIST_SUB= OPSYS=${OPSYS:tl} \
SUFFIX=${SUFFIX} \
TARGETARCH=${TARGETARCH} \
Expand Down

0 comments on commit 348c101

Please sign in to comment.