commit:     52a577f73d8337a657657e90cdb7d3c9d47e72e0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 27 12:15:19 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 27 12:15:19 2025 +0000
URL:        
https://gitweb.gentoo.org/proj/blas-lapack-aux-wrapper.git/commit/?id=52a577f7

Use sys_root from cross file

use sys_root from cross file rather than grabbing it from the compiler,
as clang doesn't support --print-sysroot.

Bug: https://bugs.gentoo.org/965157
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 meson.build | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/meson.build b/meson.build
index 196a8a6..ab82548 100644
--- a/meson.build
+++ b/meson.build
@@ -17,19 +17,14 @@ if get_option('ilp64')
 endif
 
 libraries = ['blas', 'cblas', 'lapack', 'lapacke']
-sysroot = run_command(
-  [cc, '--print-sysroot'],
-  capture : true,
-  check : true,
-).stdout().strip('\n')
 sys_libs = get_option('libdir')
 if not fs.is_absolute(sys_libs)
   sys_libs = get_option('prefix') / sys_libs
 endif
+sysroot = meson.get_external_property('sys_root', '')
 if sysroot != ''
   sys_libs = sysroot / sys_libs.strip('/')
 endif
-message(sys_libs)
 
 dummy_obj = configure_file(
   output : 'dummy.o',

Reply via email to