mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 02:16:59 +02:00
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:
parent
e6285c77ad
commit
a72dc751fb
5
sdk_container/src/third_party/coreos-overlay/coreos/config/env/dev-lang/perl
vendored
Normal file
5
sdk_container/src/third_party/coreos-overlay/coreos/config/env/dev-lang/perl
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
if [[ ${EBUILD_PHASE} == configure ]]; then
|
||||
if tc-is-cross-compiler; then
|
||||
append-cflags "-fwrapv -fno-strict-aliasing"
|
||||
fi
|
||||
fi
|
Loading…
Reference in New Issue
Block a user