diff --git a/srcpkgs/linux4.9/template b/srcpkgs/linux4.9/template index 6efb21641a1..1306f158332 100644 --- a/srcpkgs/linux4.9/template +++ b/srcpkgs/linux4.9/template @@ -35,8 +35,6 @@ mutable_files=" /usr/lib/modules/${_kernver}/modules.alias.bin /usr/lib/modules/${_kernver}/modules.devname" -CFLAGS="-Wno-missing-attributes" - do_configure() { # If there's a file called -dotconfig, use it to # configure the kernel; otherwise use arch defaults and all stuff @@ -87,6 +85,7 @@ do_build() { fi export LDFLAGS= make ARCH=$arch ${_version} ${_cross} ${makejobs} prepare + vsed -i Makefile -e "/KBUILD_CFLAGS *:=/s/:= /:= -Wno-error /" make ARCH=$arch ${_version} ${_cross} ${makejobs} ${_args} } do_install() {