]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix multiarch handling in sysdeps generation.
authorRoland McGrath <roland@hack.frob.com>
Fri, 11 Jan 2013 19:39:38 +0000 (11:39 -0800)
committerRoland McGrath <roland@hack.frob.com>
Sat, 12 Jan 2013 00:00:49 +0000 (16:00 -0800)
ChangeLog
configure
configure.in

index 3ffd8fd43d6eeb96131ff975020e69cd4394d968..d5e0dffef7d9f400e2354ff06e0bbd175073b184 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-01-11  Roland McGrath  <roland@hack.frob.com>
+
+       * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
+       not in the main loop.
+       * configure: Regenerated.
+
 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
 
        * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
index 89dfc9858eca938f21c3feec9ab479b8857cf93d..c2fdc151e9673349d4cea89bcf4ec91697644a7c 100755 (executable)
--- a/configure
+++ b/configure
@@ -4295,6 +4295,7 @@ if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
     multi_arch=no
   fi
 fi
+multi_arch_d=
 if test x"$multi_arch" != xno; then
   multi_arch_d=/multiarch
 fi
@@ -4347,11 +4348,16 @@ while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
   set $m
   # Prepend the machine's FPU directory unless --without-fp.
   if test "$with_fp" = yes; then
-    mach="$mach /$1/fpu"
+    maybe_fpu=/fpu
   else
-    mach="$mach /$1/nofpu"
+    maybe_fpu=/nofpu
   fi
-  mach="$mach /$1"
+  # For each machine term, try it with and then without /multiarch.
+  for try_fpu in $maybe_fpu ''; do
+    for try_multi in $multi_arch_d ''; do
+      mach="$mach /$1$try_fpu$try_multi"
+    done
+  done
   tail="$2"
 done
 
@@ -4365,7 +4371,7 @@ for b in $base ''; do
       test "$v" = / && continue
       for o in /$ostry ''; do
        test "$o" = / && continue
-       for m in $multi_arch_d $mach ''; do
+       for m in $mach ''; do
          for d in $add_ons_pfx ''; do
            for a in $add_ons_sfx ''; do
              try_suffix="$m0$b$v$o$m"
index 4e584c6a45bac917cfdbd4248022eca0d7322102..4cfa36db003d048f8103c42f101afda756beb26f 100644 (file)
@@ -633,6 +633,7 @@ if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
     multi_arch=no
   fi
 fi
+multi_arch_d=
 if test x"$multi_arch" != xno; then
   multi_arch_d=/multiarch
 fi
@@ -686,11 +687,16 @@ while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
   set $m
   # Prepend the machine's FPU directory unless --without-fp.
   if test "$with_fp" = yes; then
-    mach="$mach /$1/fpu"
+    maybe_fpu=/fpu
   else
-    mach="$mach /$1/nofpu"
+    maybe_fpu=/nofpu
   fi
-  mach="$mach /$1"
+  # For each machine term, try it with and then without /multiarch.
+  for try_fpu in $maybe_fpu ''; do
+    for try_multi in $multi_arch_d ''; do
+      mach="$mach /$1$try_fpu$try_multi"
+    done
+  done
   tail="$2"
 done
 
@@ -706,7 +712,7 @@ for b in $base ''; do
       test "$v" = / && continue
       for o in /$ostry ''; do
        test "$o" = / && continue
-       for m in $multi_arch_d $mach ''; do
+       for m in $mach ''; do
          for d in $add_ons_pfx ''; do
            for a in $add_ons_sfx ''; do
              try_suffix="$m0$b$v$o$m"