meson: support for custom nm path
PATCH 1/1 meson: support for custom nm path
From: Jörg Thalheim <[email protected]>
When cross-compiling target toolchains i.e. binutils are often prefixed by its target architecture. This patch gives the user to option to specify the nm used during the build process.
Signed-off-by Jörg Thalheim <[email protected]>
--- meson.build | 2 +- meson_options.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-)
meson.build +1 -1
@@ -327,7 +327,7 @@ pkg.generate( ) env_test = environment() -env_test.set('NM', find_program('nm').path()) +env_test.set('NM', find_program(get_option('nm-path')).path()) if with_libkms subdir('libkms')
meson_options.txt +6 -0
@@ -141,3 +141,9 @@ option( value : false, description : 'Enable support for using udev instead of mknod.', ) +option( + 'nm-path', + type : 'string', + description : 'path to nm', + value : 'nm' +)
Signature · 6 lines
2.22.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel