net-libs/rb_libtorrent: Make sure 1.1.2 links against the right version of the library
authorPatrick McLean <chutzpah@gentoo.org>
Wed, 15 Mar 2017 21:29:04 +0000 (14:29 -0700)
committerPatrick McLean <chutzpah@gentoo.org>
Wed, 15 Mar 2017 21:31:11 +0000 (14:31 -0700)
Also makes sure that we are using the right header files. When building the
python bindings, since we are working in a copy of the source tree, rather
than the one the lib was built in, it tends to use the installed versions
rather the new ones.

Package-Manager: Portage-2.3.4, Repoman-2.3.2

net-libs/rb_libtorrent/rb_libtorrent-1.1.2.ebuild

index a896476e7a5e0fc0b3103b2efd0c1db49edc0b51..c3a54a8c6d7cdba1c1075759a67c5d2ed7e3dba5 100644 (file)
@@ -48,7 +48,10 @@ src_prepare() {
 
        # bug 578026
        # prepend -L${S}/... to ensure bindings link against the lib we just built
-       sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/compile_flags.in || die
+       sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/link_flags.in || die
+
+       # prepend -I${S}/... to ensure bindings use the right headers
+       sed -i -e "s|^|-I${S}/src/include |" bindings/python/compile_flags.in || die
 
        use python && distutils-r1_src_prepare
 }