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:
parent
25940548c9
commit
df681b469d
@ -1204,8 +1204,8 @@ cp_vmlinux()
|
|||||||
# from redhat-rpm-config assume that host == target so target arch
|
# from redhat-rpm-config assume that host == target so target arch
|
||||||
# flags cause issues with the host compiler.
|
# flags cause issues with the host compiler.
|
||||||
%if !%{with_cross}
|
%if !%{with_cross}
|
||||||
%define build_hostcflags %{build_cflags}
|
%define build_hostcflags %{?build_cflags}
|
||||||
%define build_hostldflags %{build_ldflags} -Wl,--build-id=uuid
|
%define build_hostldflags %{?build_ldflags} -Wl,--build-id=uuid
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildKernel() {
|
BuildKernel() {
|
||||||
|
Loading…
Reference in New Issue
Block a user