diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/krb5/krb5/crosscompile_nm.patch')
-rw-r--r-- | meta-oe/recipes-connectivity/krb5/krb5/crosscompile_nm.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/krb5/krb5/crosscompile_nm.patch b/meta-oe/recipes-connectivity/krb5/krb5/crosscompile_nm.patch new file mode 100644 index 000000000..d3e693751 --- /dev/null +++ b/meta-oe/recipes-connectivity/krb5/krb5/crosscompile_nm.patch | |||
@@ -0,0 +1,29 @@ | |||
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>; | ||