From 4c27963473244acc30df28419a71c8374fdbd846778cd1e4e9e85cf0095304b9 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 12 Jan 2012 11:49:18 +0000 Subject: [PATCH] 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 --- glibc.changes | 6 ++++++ glibc.spec | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/glibc.changes b/glibc.changes index abdb862..15af4f5 100644 --- a/glibc.changes +++ b/glibc.changes @@ -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 diff --git a/glibc.spec b/glibc.spec index 0ab50e7..3e5e6d7 100644 --- a/glibc.spec +++ b/glibc.spec @@ -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