svn commit: r490351 - head/audio/caps-lv2
Yuri Victorovich
yuri at FreeBSD.org
Tue Jan 15 07:49:08 UTC 2019
Author: yuri
Date: Tue Jan 15 07:49:07 2019
New Revision: 490351
URL: https://svnweb.freebsd.org/changeset/ports/490351
Log:
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 at anongoth.pl>
Modified:
head/audio/caps-lv2/Makefile
Modified: head/audio/caps-lv2/Makefile
==============================================================================
--- head/audio/caps-lv2/Makefile Tue Jan 15 07:45:38 2019 (r490350)
+++ head/audio/caps-lv2/Makefile Tue Jan 15 07:49:07 2019 (r490351)
@@ -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
More information about the svn-ports-head
mailing list