SHA256
3
0
forked from pool/rpm

Accepting request 85506 from Base:build:arm

- fix architecture definition for armv5el

- use -O0 for soft FPU ARM

OBS-URL: https://build.opensuse.org/request/show/85506
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=150
This commit is contained in:
Dirk Mueller 2011-09-29 18:22:32 +00:00 committed by Git OBS Bridge
parent 982cb6b973
commit 015f07123c
2 changed files with 25 additions and 10 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Sep 29 18:49:33 CEST 2011 - dmueller@suse.de
- fix architecture definition for armv5el
-------------------------------------------------------------------
Thu Sep 29 15:16:11 UTC 2011 - adrian@suse.de
- use -O0 for soft FPU ARM
-------------------------------------------------------------------
Tue Sep 27 13:34:41 UTC 2011 - adrian@suse.de

View File

@ -195,24 +195,29 @@ rm -f m4/lt*.m4
%build
export CFLAGS="$RPM_OPT_FLAGS -ffunction-sections"
export LDFLAGS="-Wl,-Bsymbolic-functions -ffunction-sections"
%ifarch alpha
export CFLAGS="-g -O0 -fno-strict-aliasing"
%ifarch alpha armv5el
export CFLAGS="-g -O0 -fno-strict-aliasing -ffunction-sections"
%endif
%if %{_target_cpu}
%ifarch %arm
BUILDTARGET="--build=%{_target_cpu}-suse-linux-gnueabi"
%else
BUILDTARGET="--build=%{_target_cpu}-suse-linux"
%endif
%endif
#cp -p /usr/share/gettext/config.rpath .
cp autogen.sh beecrypt
pushd beecrypt
./autogen.sh --with-pic --without-python
./autogen.sh --with-pic --without-python $BUILDTARGET
make %{?_smp_mflags}
popd
%ifarch %arm armv5l armv7l armv7hl
HOST="%{_host_cpu}-suse-linux-gnueabi" # configure.ac detects this to set %_gnu in macros
%else
HOST="%{_host_cpu}-suse-linux"
%endif
./autogen.sh --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
--libdir=%{_libdir} --sysconfdir=/etc --localstatedir=/var --with-lua \
--with-selinux --with-internal-beecrypt --with-acl --with-cap --enable-shared %{?with_python: --enable-python} \
--host="$HOST" --build="$HOST" --target="$HOST"
--with-selinux --with-internal-beecrypt \
--with-acl --with-cap --enable-shared %{?with_python: --enable-python} $BUILDTARGET
rm po/de.gmo
make %{?_smp_mflags}