[lv2-newtonator] adjust CXXFLAGS to fix FTBFS on ARM
Peter Robinson
pbrobinson at fedoraproject.org
Sun Mar 31 17:44:23 UTC 2013
commit 8f91ad585292a181f3bc651d4022bab0f3cd6b0f
Author: Peter Robinson <pbrobinson at gmail.com>
Date: Sun Mar 31 18:44:17 2013 +0100
adjust CXXFLAGS to fix FTBFS on ARM
lv2-newtonator.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/lv2-newtonator.spec b/lv2-newtonator.spec
index 663c485..684b20c 100644
--- a/lv2-newtonator.spec
+++ b/lv2-newtonator.spec
@@ -1,6 +1,6 @@
Name: lv2-newtonator
Version: 0.6.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: An LV2 soft synth
Group: Applications/Multimedia
@@ -25,6 +25,12 @@ find . -name "*.h" -exec chmod -x {} \; ;
find . -name "*.cpp" -exec chmod -x {} \; ;
%build
+%ifarch sparcv9 sparc64 s390 s390x
+export CXXFLAGS="%{optflags} -fPIC"
+%else
+export CXXFLAGS="%{optflags} -fpic"
+%endif
+
%cmake -DLV2_INSTALL_DIR=%{_libdir}/lv2 \
-DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?_smp_mflags}
@@ -38,5 +44,8 @@ make install DESTDIR=%{buildroot}
%{_libdir}/lv2/newtonator_gtk.lv2
%changelog
+* Sun Mar 31 2013 Peter Robinson <pbrobinson at fedoraproject.org> 0.6.0-2
+- adjust CXXFLAGS to fix FTBFS on ARM
+
* Sat Dec 15 2012 Brendan Jones <brendan.jones.it at gmail.com> 0.6.0-1
- Initial development
More information about the scm-commits
mailing list