From dd5f93537b1357545cd24aa3d15092970b119d34 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Sun, 18 Nov 2012 22:23:26 +0700 Subject: [PATCH] Disable Gold linker on RHEL <= 6 --- llvm.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm.spec b/llvm.spec index f15c217..190c734 100644 --- a/llvm.spec +++ b/llvm.spec @@ -28,11 +28,15 @@ ExcludeArch: s390 s390x ppc ppc64 # gold linker support # arch list from binutils spec %global gold_arches %ix86 x86_64 +%if 0%{?rhel} >= 7 || 0%{?fedora} %ifarch %gold_arches %bcond_without gold %else %bcond_with gold %endif +%else +%bcond_with gold +%endif Name: llvm Version: 3.1