diff --git eclass/kernel-2.eclass eclass/kernel-2.eclass index 5a9ea9f..9fc4ebd 100644 --- eclass/kernel-2.eclass +++ eclass/kernel-2.eclass @@ -642,7 +642,9 @@ compile_headers() { # if we couldnt obtain HOSTCFLAGS from the Makefile, # then set it to something sane - local HOSTCFLAGS=$(getfilevar HOSTCFLAGS "${S}"/Makefile) + # bug https://bugs.gentoo.org/show_bug.cgi?id=566496 + # local HOSTCFLAGS=$(getfilevar HOSTCFLAGS "${S}"/Makefile) + local HOSTCFLAGS="" HOSTCFLAGS=${HOSTCFLAGS:--Wall -Wstrict-prototypes -O2 -fomit-frame-pointer} if kernel_is 2 4; then @@ -716,6 +718,8 @@ install_universal() { install_headers() { local ddir=$(kernel_header_destdir) + # bug https://bugs.gentoo.org/show_bug.cgi?id=566514 + [[ ${ETYPE} == headers ]] && unset KBUILD_OUTPUT # 2.6.18 introduces headers_install which means we dont need any # of this crap anymore :D if kernel_is ge 2 6 18 ; then