From 403798dc1f2bf2b41677d15e77d8e0500c0a52db Mon Sep 17 00:00:00 2001 From: jjh Date: Sat, 15 Nov 2008 21:46:31 +0000 Subject: [PATCH] fix regparm build option for x86 builds --- haproxy.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/haproxy.spec b/haproxy.spec index 04b043a..edd4c1c 100644 --- a/haproxy.spec +++ b/haproxy.spec @@ -46,13 +46,14 @@ availability environments. Indeed, it can: %build # No configure script is present, it is all done via make flags # FC 7 and up is linux 2.6 so using linux26 as target. + +# Recommended optimization option for x86 builds +regparm_opts= %ifarch %ix86 -USE_REGPARM=1 -%else -USE_REGPARM=0 +regparm_opts="USE_REGPARM=1" %endif -make %{?_smp_mflags} CPU="generic" TARGET="linux26" USE_PCRE=1 ADDINC="%{optflags}" USE_REGPARM=${USE_REGPARM} +make %{?_smp_mflags} CPU="generic" TARGET="linux26" USE_PCRE=1 ${regparm_opts} ADDINC="%{optflags}" %install