rpms/haproxy/F-8 haproxy.spec,1.11,1.12

Jeremy Hinegardner jjh at fedoraproject.org
Sat Nov 15 22:03:00 UTC 2008


Author: jjh

Update of /cvs/pkgs/rpms/haproxy/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12311/F-8

Modified Files:
	haproxy.spec 
Log Message:
fix regparm compilation option


Index: haproxy.spec
===================================================================
RCS file: /cvs/pkgs/rpms/haproxy/F-8/haproxy.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- haproxy.spec	15 Nov 2008 21:21:55 -0000	1.11
+++ haproxy.spec	15 Nov 2008 22:02:29 -0000	1.12
@@ -46,13 +46,14 @@
 %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.
-%ifarch %ix86
-USE_REGPARM=1
-%else
-USE_REGPARM=0
+
+# Recommended optimization option for x86 builds
+regparm_opts=
+%ifarch %ix86 x86_64
+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




More information about the fedora-extras-commits mailing list