Merge pull request #35 from jcvenegas/fix-fedora-28

pkgs: Fix build for fedora 28.
This commit is contained in:
James O. D. Hunt 2018-05-17 07:15:09 +01:00 committed by GitHub
commit b8bd68b77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,6 +77,12 @@ BuildKernel() {
make -s mrproper
cp config .config
%if 0%{?fedora}
#Fedora uses gcc 8, build is failing due to warnings.
export CFLAGS="-Wno-error=restrict"
export EXTRA_CFLAGS="-Wno-format-truncation -Wno-cast-function-type -Wno-error=restrict -Wno-error"
%endif
make -s ARCH=$Arch oldconfig > /dev/null
make -s CONFIG_DEBUG_SECTION_MISMATCH=y %{?_smp_mflags} ARCH=$Arch %{?sparse_mflags} || exit 1
}