sys-libs/libunwind: disable building code in tests/ #484846
authorMike Frysinger <vapier@gentoo.org>
Mon, 13 Jun 2016 18:02:25 +0000 (14:02 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 13 Jun 2016 18:04:03 +0000 (14:04 -0400)
sys-libs/libunwind/libunwind-1.1.ebuild

index d7a83d696b1e3db640d0c4946f36ddb36a98b5af..96c0baf3a5d3c97436a3a842b495e236bd6c902b 100644 (file)
@@ -31,6 +31,10 @@ src_prepare() {
        echo 'int main(){return 0;}' > tests/Gtest-dyn1.c
        echo 'int main(){return 0;}' > tests/Ltest-dyn1.c
 
+       # Since we have tests disabled via RESTRICT, disable building in the subdir
+       # entirely.  This worksaround some build errors too. #484846
+       sed -i -e '/^SUBDIRS/s:tests::' Makefile.in || die
+
        sed -i -e '/LIBLZMA/s:-lzma:-llzma:' configure{.ac,} || die #444050
        epatch "${FILESDIR}"/${P}-lzma.patch #444050
        elibtoolize