audio/caps-lv2: fix build with GCC-based architectures

GCC architectures don't have libc++. Add -stdlib=libstdc++ on them to CXXFLAGS and LDFLAGS to fix build.

PR:		234943
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
This commit is contained in:
Yuri Victorovich 2019-01-15 07:49:07 +00:00
parent c4bfb0503c
commit 87eacd6b11
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490351

View File

@ -26,6 +26,11 @@ CPP= clang-cpp${LLVM_VER}
CC= clang${LLVM_VER}
CXX= clang++${LLVM_VER}
.if exists(/usr/lib/libstdc++.so)
CXXFLAGS+= -stdlib=libstdc++
LDFLAGS+= -stdlib=libstdc++
.endif
post-patch:
@${REINPLACE_CMD} -e "s|__APPLE__|__FreeBSD__|" \
${WRKSRC}/dsp/v4f_IIR2.h