Building on GCC-based architectures after the upgrade to GCC8 requires

adding -Wno-unused-function -Wno-class-memaccess -Wno-catch-value to
CXXFLAGS and -Wno-format-overflow to CFLAGS.

PR:		234067
Submitted by:	Piotr Kubaj
Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2018-12-22 02:24:22 +00:00
parent 3ff147be39
commit eb0c0e7146
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=488051

View file

@ -21,6 +21,11 @@ USE_LDCONFIG= yes
CXXFLAGS+= -Wno-implicit-fallthrough
.if exists(/usr/lib/libstdc++.so)
CXXFLAGS+= -Wno-unused-function -Wno-class-memaccess -Wno-catch-value
CFLAGS+= -Wno-format-overflow
.endif
post-patch:
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/cmake/modules/*.cmake