From 9ec92a18973347e785aa6ee7cb975a901d18262f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 08:27:05 +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 --- SuperLU.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SuperLU.spec b/SuperLU.spec index 3189808..092a911 100644 --- a/SuperLU.spec +++ b/SuperLU.spec @@ -2,7 +2,7 @@ %global libver 5 ## The RPM macro for the linker flags does not exist on EPEL -%if 0%{?rhel} < 7 +%if 0%{?rhel} && 0%{?rhel} < 7 %{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro} %endif