mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
The Gentoo hardened compiler enables PIE by default unless it detects an incompatible option. To detect kernel builds it uses -D__KERNEL__ which is unfortunately a preprocessor option that ccache >= 3.2 will not pass to compile-only calls, since in theory it is unnessicary and omitting preprocessor options works around and issues in another (*cough* LLVM) compilers. There really isn't any other alternative magic hack so go with the plain no-magic solution. :) Bug: https://bugs.gentoo.org/show_bug.cgi?id=535984