summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Gilmore <ausil@fedoraproject.org>2009-02-15 02:43:00 +0000
committerDennis Gilmore <ausil@fedoraproject.org>2009-02-15 02:43:00 +0000
commit89fc53ae8d757ae488e73a57c79390de4f42892b (patch)
tree10db5392492fc54dd7b1b8a0cc9b34c8c074ec05
parentd8e37ed8943d1f83bf8509b9300e6f8084bd03ee (diff)
downloaderlang-89fc53ae8d757ae488e73a57c79390de4f42892b.tar.gz
erlang-89fc53ae8d757ae488e73a57c79390de4f42892b.tar.xz
erlang-89fc53ae8d757ae488e73a57c79390de4f42892b.zip
fix sparc arches
-rw-r--r--erlang.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/erlang.spec b/erlang.spec
index 4d7ca9b..b860d95 100644
--- a/erlang.spec
+++ b/erlang.spec
@@ -3,7 +3,7 @@
Name: erlang
Version: %{ver}
-Release: %{rel}.3%{?dist}
+Release: %{rel}.4%{?dist}
Summary: General-purpose programming language and runtime environment
Group: Development/Languages
@@ -64,7 +64,11 @@ sed -i 's|@RX_LDFLAGS@||' lib/common_test/c_src/Makefile.in
%build
+%ifarch sparcv9 sparc64
+CFLAGS="-mcpu=ultrasparc -fno-strict-aliasing" ./configure --prefix=%{_prefix} --exec-prefix=%{_prefix} --bindir=%{_bindir} --libdir=%{_libdir}
+%else
CFLAGS="-fno-strict-aliasing" ./configure --prefix=%{_prefix} --exec-prefix=%{_prefix} --bindir=%{_bindir} --libdir=%{_libdir}
+%endif
chmod -R u+w .
make
@@ -119,6 +123,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Sat Feb 14 2009 Dennis Gilmore <dennis@ausil.us> - R12B-4.4
+- fix sparc arches to compile
+
* Sat Oct 25 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-4.1
- new release R12B-4