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