From df681b469d59024928e9f625d0ae000c638e1734 Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Thu, 11 Oct 2018 11:43:47 -0700 Subject: [PATCH] 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] --- kernel.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel.spec b/kernel.spec index 6f331fd45..2fb9405f4 100644 --- a/kernel.spec +++ b/kernel.spec @@ -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() {