summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2016-04-02 08:50:23 +0200
committerFabian Groffen <grobian@gentoo.org>2016-04-02 08:53:27 +0200
commit985618b595f0cdfbe313f04298ec1c92fb260a3a (patch)
treeb6e302c417c472fcdde9fe04ddcb1400204c13c2 /dev-libs/libcdio-paranoia
parentapp-emulation/virtualbox-bin: update metadata.xml (diff)
downloadgentoo-985618b595f0cdfbe313f04298ec1c92fb260a3a.tar.gz
gentoo-985618b595f0cdfbe313f04298ec1c92fb260a3a.tar.bz2
gentoo-985618b595f0cdfbe313f04298ec1c92fb260a3a.zip
dev-libs/libcdio-paranoia: fix compilation on Darwin and/or with Clang, bug #577256
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-libs/libcdio-paranoia')
-rw-r--r--dev-libs/libcdio-paranoia/libcdio-paranoia-0.93_p1.ebuild6
1 files changed, 5 insertions, 1 deletions
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
}