From 985618b595f0cdfbe313f04298ec1c92fb260a3a Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 2 Apr 2016 08:50:23 +0200 Subject: dev-libs/libcdio-paranoia: fix compilation on Darwin and/or with Clang, bug #577256 Package-Manager: portage-2.2.27 --- dev-libs/libcdio-paranoia/libcdio-paranoia-0.93_p1.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dev-libs/libcdio-paranoia') diff --git a/dev-libs/libcdio-paranoia/libcdio-paranoia-0.93_p1.ebuild b/dev-libs/libcdio-paranoia/libcdio-paranoia-0.93_p1.ebuild index 083ca2c08dd6..c64cff4c7c1f 100644 --- a/dev-libs/libcdio-paranoia/libcdio-paranoia-0.93_p1.ebuild +++ b/dev-libs/libcdio-paranoia/libcdio-paranoia-0.93_p1.ebuild @@ -7,7 +7,7 @@ MY_P=${PN}-10.2+${PV/_p/+} AUTOTOOLS_AUTORECONF=yes -inherit eutils autotools-multilib +inherit eutils autotools-multilib flag-o-matic DESCRIPTION="an advanced CDDA reader with error correction" HOMEPAGE="https://www.gnu.org/software/libcdio/" @@ -38,6 +38,8 @@ DOCS=( AUTHORS ChangeLog NEWS README THANKS ) src_prepare() { sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #466410 autotools-multilib_src_prepare + + [[ ${CC} == *clang* ]] && append-flags -std=gnu89 } src_configure() { @@ -48,6 +50,8 @@ src_configure() { --disable-cpp-progs --with-cd-paranoia-name=libcdio-paranoia ) + # Darwin linker doesn't get this + [[ ${CHOST} == *-darwin* ]] && myeconfargs+=( --without-versioned-libs ) autotools-multilib_src_configure } -- cgit v1.2.3-65-gdbad