From d1c9c8e1998710eabee96582bdf2aa31f520c206 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 08:23:44 +0100 Subject: [PATCH] Fix RHEL conditions 0%{?rhel} on Fedora expands to 0 which makes condition 0 < 7 true. You don't want that. Signed-off-by: Igor Gnatenko --- hdf.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdf.spec b/hdf.spec index 4b2f227..b71c3e4 100644 --- a/hdf.spec +++ b/hdf.spec @@ -1,4 +1,4 @@ -%if 0%{?rhel} < 7 +%if 0%{?rhel} && 0%{?rhel} < 7 %{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro} %endif