coreos/config: add fix for perl cross-compilation

Current cross builds of perl segfault on simple operations such as `perl -V`.
This appears to be due to the cross-build not getting `-fwrapv -fno-strict-aliasing`
passed from the configure script. While we try to get this fixed upstream, we
can monkeypatch our old version of perl to fix this.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski 2021-08-30 14:11:16 +00:00
parent e6285c77ad
commit a72dc751fb

View File

@ -0,0 +1,5 @@
if [[ ${EBUILD_PHASE} == configure ]]; then
if tc-is-cross-compiler; then
append-cflags "-fwrapv -fno-strict-aliasing"
fi
fi