Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | Modifies export-check.pl to use look for $ENV{'NM'} before |
| 2 | defaulting to using 'nm' |
| 3 | |
| 4 | Upstream-Status: Pending |
| 5 | |
| 6 | Signed-off-by: Amy Fong <amy.fong@windriver.com> |
| 7 | --- |
| 8 | |
| 9 | export-check.pl | 7 ++++++- |
| 10 | 1 file changed, 6 insertions(+), 1 deletion(-) |
| 11 | |
| 12 | Index: 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>; |