summaryrefslogtreecommitdiff
path: root/elements/gnu-toolchain/stage2-gcc.bst
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2017-09-12 14:31:48 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-25 13:41:36 +0000
commit1a43012e5c82b3ac165dcdb03dd5932a59c71830 (patch)
tree9460f1c002feb651eeafbf7c2727f8c75fdd93c9 /elements/gnu-toolchain/stage2-gcc.bst
parent330c57ce57eca2ae63a7afee0d0eac32c4bda2b7 (diff)
downloaddefinitions-1a43012e5c82b3ac165dcdb03dd5932a59c71830.tar.gz
gnu-toolchain: Fix armv8l64 looking in the wrong place for libraries
Diffstat (limited to 'elements/gnu-toolchain/stage2-gcc.bst')
-rw-r--r--elements/gnu-toolchain/stage2-gcc.bst10
1 files changed, 5 insertions, 5 deletions
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/"