From 91352497429d404e3c4f4af45cd0b1985d82a923 Mon Sep 17 00:00:00 2001
From: Pengda Dou <doupengda@loongson.cn>
Date: Tue, 23 Apr 2024 15:25:25 +0800
Subject: [PATCH] toolbox-0.0.99.5 add support for loongarch64

---
 src/meson.build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/meson.build b/src/meson.build
index 098c692..f7c9b95 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -52,6 +52,8 @@ elif cpu_family == 'x86_64' and endian == 'little'
   dynamic_linker = '/lib64/ld-linux-x86-64.so.2'
 elif cpu_family == 'riscv64' and endian == 'little'
   dynamic_linker = '/lib/ld-linux-riscv64-lp64d.so.1'
+elif cpu_family == 'loongarch64' and endian == 'little'
+  dynamic_linker = '/lib64/ld-linux-loongarch-lp64d.so.1'
 else
   host_machine_description = cpu_family + ' (' + endian + ' endian)'
   error('Please specify dynamic linker for:', host_machine_description)
-- 
2.38.1

