diff --git a/1000-anolis-gc-7.6.4-add-loongarch.patch b/1000-anolis-gc-7.6.4-add-loongarch.patch new file mode 100644 index 0000000000000000000000000000000000000000..8d80cf27a498c30de351400e4a0c0c3b29f1cf8a --- /dev/null +++ b/1000-anolis-gc-7.6.4-add-loongarch.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index 1bd0fd6..0d93474 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -722,7 +722,7 @@ AC_ARG_ENABLE(gc-debug, + AC_MSG_WARN("Client code may need to link against libunwind.") + ]) + ;; +- x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* ) ++ x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | *loongarch*) + AC_DEFINE(MAKE_BACK_GRAPH) + AC_MSG_WARN("Client must not use -fomit-frame-pointer.") + AC_DEFINE(SAVE_CALL_COUNT, 8) diff --git a/gc.spec b/gc.spec index 98cfd6efb4165a57084ba15d6c66b2879b7755bc..43a6c18b1eb47288e4c97d6bfe852a86997dc2f1 100644 --- a/gc.spec +++ b/gc.spec @@ -15,6 +15,7 @@ Source0: http://www.hboehm.info/gc/gc_source/gc-%{version}%{?pre}.tar.gz ## downstream patches # https://bugzilla.redhat.com/show_bug.cgi?id=1551671 Patch100: gc-7.6.4-dont_disable_exceptions.patch +Patch1000: 1000-anolis-gc-7.6.4-add-loongarch.patch BuildRequires: automake libtool BuildRequires: gcc-c++ @@ -57,7 +58,7 @@ CPPFLAGS="-DUSE_GET_STACKBASE_FOR_MAIN"; export CPPFLAGS --disable-docs \ --enable-cplusplus \ --enable-large-config \ -%ifarch %{ix86} +%ifarch %{ix86} loongarch64 --enable-parallel-mark \ %endif --enable-threads=posix