rpms/haproxy/F-9 haproxy.spec,1.12,1.13

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


Author: jjh

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

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


Index: haproxy.spec
===================================================================
RCS file: /cvs/pkgs/rpms/haproxy/F-9/haproxy.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- haproxy.spec	15 Nov 2008 21:24:03 -0000	1.12
+++ haproxy.spec	15 Nov 2008 22:02:30 -0000	1.13
@@ -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