fix build on other arches

This commit is contained in:
Dan Horák 2011-09-09 19:30:19 +02:00
parent f33434782c
commit ee88cf1367
1 changed files with 9 additions and 6 deletions

View File

@ -9,7 +9,7 @@
Summary: ANother Tool for Language Recognition Summary: ANother Tool for Language Recognition
Name: antlr3 Name: antlr3
Version: %{antlr_version} Version: %{antlr_version}
Release: 14%{?dist} Release: 15%{?dist}
URL: http://www.antlr.org/ URL: http://www.antlr.org/
Source0: http://www.antlr.org/download/antlr-%{antlr_version}.tar.gz Source0: http://www.antlr.org/download/antlr-%{antlr_version}.tar.gz
Source1: http://www.antlr.org/download/C/libantlr3c-%{antlr_version}.tar.gz Source1: http://www.antlr.org/download/C/libantlr3c-%{antlr_version}.tar.gz
@ -203,11 +203,11 @@ popd
# Build the C runtime # Build the C runtime
pushd libantlr3c-%{antlr_version} pushd libantlr3c-%{antlr_version}
%ifarch x86_64 ppc64 %configure --disable-abiflags --enable-debuginfo \
%configure --disable-abiflags --enable-debuginfo --enable-64bit %ifarch x86_64 ppc64 s390x sparc64
%endif --enable-64bit
%ifarch %{ix86} ppc %else
%configure --disable-abiflags --enable-debuginfo %{nil}
%endif %endif
sed -i "s/CFLAGS = .*/CFLAGS = $RPM_OPT_FLAGS/" Makefile sed -i "s/CFLAGS = .*/CFLAGS = $RPM_OPT_FLAGS/" Makefile
@ -324,6 +324,9 @@ rm -rf $RPM_BUILD_ROOT
%{_javadir}/*gunit*.jar %{_javadir}/*gunit*.jar
%changelog %changelog
* Fri Sep 09 2011 Dan Horák <dan[at]danny.cz> - 3.2-15
- fix build on other arches
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-14 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild