_ppc64_powerpc_biarch
authorMatthias Klose <doko@debian.org>
Mon, 2 Dec 2019 10:55:09 +0000 (10:55 +0000)
committerMatthias Klose <doko@debian.org>
Mon, 2 Dec 2019 10:55:09 +0000 (10:55 +0000)
===================================================================

Gbp-Pq: Name 128_ppc64_powerpc_biarch.patch

ld/emulparams/elf32ppccommon.sh

index 2872ca6a162eb184ddde4b1ae1fdd231d83292b7..d97eebfa69590e0ccf4d2990af320262ea1d5db9 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