Merge pull request #1047 from marineam/ccache

coreos-kernel: Fix kernel builds, broken by update to ccache 3.2.1
This commit is contained in:
Michael Marineau 2015-01-07 19:22:37 -08:00
commit 7ec2488bb9

View File

@ -84,6 +84,11 @@ update_bootengine_cpio() {
kmake() {
local kernel_arch=$(tc-arch-kernel)
# Disable hardened PIE explicitly, >=ccache-3.2 breaks the hardened
# compiler's auto-detection of kernel builds.
if gcc-specs-pie; then
set -- KCFLAGS=-nopie "$@"
fi
emake ARCH="${kernel_arch}" CROSS_COMPILE="${CHOST}-" "$@"
}