xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/perl/files/encodefix.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunThe code is encoding host compiler parameters into target builds. Avoid
2*4882a593Smuzhiyunthis for our target builds (patch is target specific, not native)
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunUpstream-Status: Inappropriate [Cross compile hack]
5*4882a593SmuzhiyunRP 2020/2/18
6*4882a593SmuzhiyunSigned-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunIndex: perl-5.30.1/cpan/Encode/bin/enc2xs
9*4882a593Smuzhiyun===================================================================
10*4882a593Smuzhiyun--- perl-5.30.1.orig/cpan/Encode/bin/enc2xs
11*4882a593Smuzhiyun+++ perl-5.30.1/cpan/Encode/bin/enc2xs
12*4882a593Smuzhiyun@@ -195,7 +195,7 @@ sub compiler_info {
13*4882a593Smuzhiyun     # above becomes false.
14*4882a593Smuzhiyun     my $sized  = $declaration && !($compat && !$pedantic);
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun-    return ($cpp, $static, $sized);
17*4882a593Smuzhiyun+    return (0, 1, 1);
18*4882a593Smuzhiyun }
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun
21