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
# 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
}