From 1a43012e5c82b3ac165dcdb03dd5932a59c71830 Mon Sep 17 00:00:00 2001
From: Jonathan Maw <jonathan.maw@codethink.co.uk>
Date: Tue, 12 Sep 2017 14:31:48 +0100
Subject: gnu-toolchain: Fix armv8l64 looking in the wrong place for libraries

---
 elements/gnu-toolchain/stage2-gcc.bst | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'elements/gnu-toolchain/stage2-gcc.bst')

diff --git a/elements/gnu-toolchain/stage2-gcc.bst b/elements/gnu-toolchain/stage2-gcc.bst
index 13b925a9..25dbc65d 100644
--- a/elements/gnu-toolchain/stage2-gcc.bst
+++ b/elements/gnu-toolchain/stage2-gcc.bst
@@ -91,11 +91,11 @@ config:
   # gcc/config/i386/t-linux64 and this might break things, so for now we
   # tolerate the inconsistency.
   - |
-    if [ "$(echo %{target} | cut -c -6)" = "x86_64" ]; then
-      libdir=lib64
-    else
-      libdir=lib
-    fi
+    case "$(echo %{target} | cut -c -6)" in
+      x86_64) libdir=lib64;;
+      armv8*64) libdir=lib64;;
+      *) libdir=lib
+    esac
 
     install -d "%{install-root}/usr/lib"
     ln -s "%{prefix}/$libdir/libgcc_s.so" "%{install-root}/usr/lib/"
-- 
cgit v1.2.1

