From 257b43610b08c33aa43ae1f4caff079ff81f89fe Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 26 Aug 2024 06:22:22 +0000 Subject: automatic import of openEuler-rpm-config --- ...4-support-for-config.guess-and-config.sub.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 add-loongarch64-support-for-config.guess-and-config.sub.patch (limited to 'add-loongarch64-support-for-config.guess-and-config.sub.patch') diff --git a/add-loongarch64-support-for-config.guess-and-config.sub.patch b/add-loongarch64-support-for-config.guess-and-config.sub.patch new file mode 100644 index 0000000..9dcec43 --- /dev/null +++ b/add-loongarch64-support-for-config.guess-and-config.sub.patch @@ -0,0 +1,26 @@ +diff --git a/config.guess b/config.guess +index 0ff02d1..1caf3a6 100644 +--- a/config.guess ++++ b/config.guess +@@ -983,6 +983,9 @@ EOF + k1om:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; ++ loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) ++ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} ++ exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; +diff --git a/config.sub b/config.sub +index 6107010..aca1d40 100644 +--- a/config.sub ++++ b/config.sub +@@ -269,6 +269,7 @@ case $basic_machine in + | k1om \ + | le32 | le64 \ + | lm32 \ ++ | loongarch32 | loongarch64 | loongarchx32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ -- cgit v1.2.3