summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Greco <pablo@fliagreco.com.ar>2018-10-11 11:43:47 -0700
committerLaura Abbott <labbott@redhat.com>2018-10-11 11:43:47 -0700
commitdf681b469d59024928e9f625d0ae000c638e1734 (patch)
treefe5c0cd2662d8917cef293a554a13b267ccb155a
parent25940548c92654a3ed2a5bdd523180262059383f (diff)
downloadkernel-df681b469d59024928e9f625d0ae000c638e1734.tar.gz
kernel-df681b469d59024928e9f625d0ae000c638e1734.tar.xz
kernel-df681b469d59024928e9f625d0ae000c638e1734.zip
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]
-rw-r--r--kernel.spec4
1 files 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() {