diff options
author | Francois Perrad <fperrad@gmail.com> | 2015-10-27 21:07:19 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2015-10-27 22:19:29 +0100 |
commit | 1faa164f2fa268025771e2d0f80b68a1946d9261 (patch) | |
tree | 9358662f7b9487ef255d7723a356e056a878e6dd /package/perl/0004-suppress-built-in-functions-to-avoid-false-positives.patch | |
parent | c2601c2d6209d567873c328da64c33c33b0992ec (diff) | |
download | buildroot-1faa164f2fa268025771e2d0f80b68a1946d9261.tar.gz buildroot-1faa164f2fa268025771e2d0f80b68a1946d9261.zip |
perl: fetch lastest upstream patches from perl-cross
my previous patch about static build (0001-fix-EUMM.patch) was not the good fix.
see discussion: http://github.com/arsv/perl-cross/issues/18
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/perl/0004-suppress-built-in-functions-to-avoid-false-positives.patch')
-rw-r--r-- | package/perl/0004-suppress-built-in-functions-to-avoid-false-positives.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/perl/0004-suppress-built-in-functions-to-avoid-false-positives.patch b/package/perl/0004-suppress-built-in-functions-to-avoid-false-positives.patch new file mode 100644 index 0000000000..73635fefa8 --- /dev/null +++ b/package/perl/0004-suppress-built-in-functions-to-avoid-false-positives.patch @@ -0,0 +1,32 @@ +suppress built-in functions to avoid false positives + +gcc knows j0 etc. are pure and excludes them from try.c, subverting +linkage test against libm.a and leading to link errors later. + +Fetch from: http://github.com/arsv/perl-cross/commit/ce7fa56d3a40767135039e03517a4d9ef2f3aaa1 +See discussion: https://github.com/arsv/perl-cross/issues/18 + +Signed-off-by: Francois Perrad <francois.perrad@gadz.org> + +--- a/cnf/configure__f.sh ++++ b/cnf/configure__f.sh +@@ -222,7 +222,7 @@ function try_link_libs { + } + + function try_link { +- try_link_libs $libs ++ try_link_libs $libs $* + } + + function try_readelf { +--- a/cnf/configure_func.sh ++++ b/cnf/configure_func.sh +@@ -22,7 +22,7 @@ function hasfunc { + esac ;; + esac + try_add "int main(void) { $1($2); return 0; }" +- try_link ++ try_link -O0 -fno-builtin + resdef 'found' 'not found' "$_s" + } + |