Accepting request 99901 from home:a_jaeger:my-factory-packages

Fix configure for i686

OBS-URL: https://build.opensuse.org/request/show/99901
OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=154
This commit is contained in:
Andreas Jaeger 2012-01-12 11:49:18 +00:00 committed by Git OBS Bridge
parent f702e1f3fa
commit 4c27963473
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 12 11:01:41 UTC 2012 - aj@suse.de
- Use _target_cpu instead of _build and _host. This makes the
i686 library really build for i686.
-------------------------------------------------------------------
Tue Jan 10 12:31:14 UTC 2012 - aj@suse.de

View File

@ -451,6 +451,10 @@ fi
uptime || :
ulimit -a
nice
# We do not want configure to figure out the system its building one
# to support a common ground and thus set build and host to the
# target_cpu.
%define target %{_target_cpu}-suse-linux
# Adjust glibc version.h
echo "#define CONFHOST \"%{_target_cpu}-suse-linux\"" >> version.h
echo "#define CVSDATE \"`date -r ChangeLog +%Y%m%d`\"" >> version.h
@ -540,7 +544,7 @@ configure_and_build_glibc() {
%if %{enable_stackguard_randomization}
--enable-stackguard-randomization \
%endif
--build=%{_build} --host=%{_host} \
--build=%{target} --host=%{target} \
%ifarch ppc ppc64 %{ix86} x86_64
--enable-multi-arch \
%endif