From: Pablo Greco <pablo(a)fliagreco.com.ar>
---
kernel.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel.spec b/kernel.spec
index e90a714..aadae04 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() {
--
1.8.3.1