Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2019 07:49:08 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r490351 - head/audio/caps-lv2
Message-ID:  <201901150749.x0F7n8kQ037763@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901150749.x0F7n8kQ037763>