[mono] - Fix URL - Attempt to fix 64 bit build problem by adding -m32 to the CFLAGS

Paul F. Johnson pfj at fedoraproject.org
Wed Oct 13 22:19:13 UTC 2010


commit 7115fdd5e74f741ee247f3d7152bffe685c74ece
Author: Paul F. Johnson <paul at all-the-johnsons.co.uk>
Date:   Wed Oct 13 23:19:04 2010 +0100

    - Fix URL
    - Attempt to fix 64 bit build problem by adding -m32 to the CFLAGS

 mono.spec |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/mono.spec b/mono.spec
index 27ff1a3..e14f4ef 100644
--- a/mono.spec
+++ b/mono.spec
@@ -6,15 +6,15 @@
 
 Name:           mono
 Version:        2.8
-Release:        1.1%{?dist}
+Release:        2%{?dist}
 Summary:        A .NET runtime environment
 
 Group:          Development/Languages
 License:        MIT
 URL:            http://www.mono-project.com/Main_Page
 # Prereleases are available here
-Source0:        http://mono.ximian.com/monobuild/preview/sources-preview/%{name}/%{name}-%{version}.tar.bz2
-#Source0:        http://ftp.novell.com/pub/mono/sources/mono/mono-%{version}.tar.bz2
+#Source0:        http://mono.ximian.com/monobuild/preview/sources-preview/%{name}/%{name}-%{version}.tar.bz2
+Source0:        http://ftp.novell.com/pub/mono/sources/mono/mono-%{version}.tar.bz2
 Source1:        monodir.c
 # This key was generated by Tom "spot" Callaway <tcallawa at redhat.com> on Dec 1, 2009
 # by running the following command:
@@ -327,11 +327,15 @@ rm -rf mcs/class/lib/monolite/*
 
 %build
 %ifarch ia64
-export CFLAGS="-O2 -fno-strict-aliasing"
+export CFLAGS="-O2 -fno-strict-aliasing -m32"
 %else
 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
 %endif
 
+%ifarch x86_64
+export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -m32"
+%endif
+
 gcc -o monodir %{SOURCE1} -DMONODIR=\"%{_libdir}/mono\"
 
 %configure --with-ikvm-native=yes --with-jit=yes --with-xen_opt=yes \
@@ -859,6 +863,10 @@ install -p -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pki/mono/
 %endif
 
 %changelog
+* Wed Oct 13 2010 Paul F. Johnson <paul at all-the-johnsons.co.uk> 2.8-2
+- Fix URL
+- Attempt to fix 64 bit build problem by adding -m32 to the CFLAGS
+
 * Thu Oct 07 2010 Paul F. Johnson <paul at all-the-johnsons.co.uk> 2.8-1.1
 - Bump to full release
 


More information about the scm-commits mailing list