1Modifies export-check.pl to use look for $ENV{'NM'} before 2defaulting to using 'nm' 3 4Upstream-Status: Pending 5 6Signed-off-by: Amy Fong <amy.fong@windriver.com> 7--- 8 9 export-check.pl | 7 ++++++- 10 1 file changed, 6 insertions(+), 1 deletion(-) 11 12Index: src/util/export-check.pl 13=================================================================== 14--- src.orig/util/export-check.pl 15+++ src/util/export-check.pl 16@@ -38,7 +38,12 @@ 17 my($exfile, $libfile) = @ARGV; 18 19 @missing = (); 20-open NM, "nm -Dg --defined-only $libfile |" || die "can't run nm on $libfile: $!"; 21+if (defined($ENV{'NM'})) { 22+ $nm = $ENV{'NM'}; 23+} else { 24+ $nm = "nm"; 25+} 26+open NM, "$nm -Dg --defined-only $libfile |" || die "can't run nm on $libfile: $!"; 27 open EXPORT, "< $exfile" || die "can't read $exfile: $!"; 28 29 @export = <EXPORT>; 30