_ppc64_powerpc_biarch
authorMatthias Klose <doko@debian.org>
Fri, 30 Sep 2022 11:34:10 +0000 (12:34 +0100)
committerMatthias Klose <doko@debian.org>
Fri, 30 Sep 2022 11:34:10 +0000 (12:34 +0100)
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