mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-31 23:36:12 +00:00
Merge pull request #35 from jcvenegas/fix-fedora-28
pkgs: Fix build for fedora 28.
This commit is contained in:
commit
b8bd68b77b
@ -77,6 +77,12 @@ BuildKernel() {
|
|||||||
make -s mrproper
|
make -s mrproper
|
||||||
cp config .config
|
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 ARCH=$Arch oldconfig > /dev/null
|
||||||
make -s CONFIG_DEBUG_SECTION_MISMATCH=y %{?_smp_mflags} ARCH=$Arch %{?sparse_mflags} || exit 1
|
make -s CONFIG_DEBUG_SECTION_MISMATCH=y %{?_smp_mflags} ARCH=$Arch %{?sparse_mflags} || exit 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user