blob: d2a19909f06db9636210da3f45fea43496a26a28 [file] [log] [blame]
Patrick Williams520786c2023-06-25 16:20:36 -05001Upstream-Status: Pending
2
Patrick Williamsb48b7b42016-08-17 15:04:38 -05003Patch was imported from the OpenEmbedded git server
4(git://git.openembedded.org/openembedded)
5as of commit id 676cbb54d42c89a4832871064cfcb7ee2ad372ee
6
7klcc-cross: Add patch to use /usr/bin/env perl
8Certain configurations (such as autobuilders) may build in very
9deep paths (that are longer than the #! mechanism allows) which
10makes it unsafe to use the direct path for perl. In our case we know
11that /usr/bin/env perl will always return ours (if it has been built).
12
13Signed-off-by: Tom Rini <tom_rini@mentor.com>
14
Patrick Williamsb48b7b42016-08-17 15:04:38 -050015--- a/klcc/makeklcc.pl
16+++ b/klcc/makeklcc.pl
17@@ -26,7 +26,7 @@ sub pathsearch($) {
18 return undef;
19 }
20
21-print "#!${perlpath}\n";
22+print "#!/usr/bin/env perl\n";
23
24 open(KLIBCCONF, "< $klibcconf\0")
25 or die "$0: cannot open $klibcconf: $!\n";