Make buildflags optional

build_hostcflags and build_hostldflags may not be defined
on all systems. Make them optional for compatibility.

[labbott: Add more commit text]
This commit is contained in:
Pablo Greco 2018-10-11 11:43:47 -07:00 committed by Laura Abbott
parent 25940548c9
commit df681b469d
1 changed files with 2 additions and 2 deletions

View File

@ -1204,8 +1204,8 @@ cp_vmlinux()
# from redhat-rpm-config assume that host == target so target arch
# flags cause issues with the host compiler.
%if !%{with_cross}
%define build_hostcflags %{build_cflags}
%define build_hostldflags %{build_ldflags} -Wl,--build-id=uuid
%define build_hostcflags %{?build_cflags}
%define build_hostldflags %{?build_ldflags} -Wl,--build-id=uuid
%endif
BuildKernel() {