On Thu, 18 Feb 2021 at 20:22, Jate Sujjavanich wrote: > +-setcap = find_program('setcap', '/usr/sbin/setcap', '/sbin/setcap', > required : false) > ++stagingdirnative = get_option('stagingdirnative') > ++setcap = find_program(stagingdirnative + '/usr/sbin/setcap', > stagingdirnative + '/sbin/setcap', required : false) > Just remove the hardcoded paths from find_program altogether (see meson manual), and it will take the binary from PATH env var, which is exactly how native sysroots are supposed to work. Alex