[PATCH] meson.eclass: fix boost detection w/ cross-compile

Nicolas PARLANT <[email protected]>
Newsgroups gmane.linux.gentoo.devel
Message-ID <[email protected]>
use ESYSROOT so meson will find headers and libs in the right paths

Signed-off-by: Nicolas PARLANT <[email protected]>
---
 eclass/meson.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index 60ce6593e8d7..198063c08b1c 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -454,8 +454,8 @@ setup_meson_src_configure() {
 	tc-getPROG READELF readelf >/dev/null
 
 	# https://bugs.gentoo.org/721786
-	export BOOST_INCLUDEDIR="${BOOST_INCLUDEDIR-${EPREFIX}/usr/include}"
-	export BOOST_LIBRARYDIR="${BOOST_LIBRARYDIR-${EPREFIX}/usr/$(get_libdir)}"
+	export BOOST_INCLUDEDIR="${BOOST_INCLUDEDIR-${ESYSROOT}/usr/include}"
+	export BOOST_LIBRARYDIR="${BOOST_LIBRARYDIR-${ESYSROOT}/usr/$(get_libdir)}"
 }
 
 # @FUNCTION: meson_src_configure
-- 
2.52.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.