_ppc64_powerpc_biarch
authorMatthias Klose <doko@debian.org>
Tue, 17 Nov 2020 10:38:54 +0000 (10:38 +0000)
committerMatthias Klose <doko@debian.org>
Tue, 17 Nov 2020 10:38:54 +0000 (10:38 +0000)
===================================================================

Gbp-Pq: Name 128_ppc64_powerpc_biarch.patch

ld/emulparams/elf32ppccommon.sh

index da892988f5df808f286a826fe69a4125399beb09..20b4ed712fe98209a1566a8039ed1e6b5b0be612 100644 (file)
@@ -56,3 +56,12 @@ case `echo "$target" | sed -e 's/-.*//'`:"$EMULATION_NAME" in
   *:*64*) LIBPATH_SUFFIX=64 ;;
   *:*32*) LIBPATH_SUFFIX=32 ;;
 esac
+
+# On 64bit, look for 32 bit target libraries in /lib32, /usr/lib32 etc., first.
+case "$target" in
+  powerpc64-*-linux* | ppc64-*-linux*)
+    case "$EMULATION_NAME" in
+      *32*) LIBPATH_SUFFIX=32 ;;
+    esac
+    ;;
+esac