diff --git a/0002-Modify-PROD_FLAGS-and-DEV_FLAGS-parameters-for-loongarch64.patch b/0002-Modify-PROD_FLAGS-and-DEV_FLAGS-parameters-for-loongarch64.patch new file mode 100644 index 0000000000000000000000000000000000000000..2f41f3bf0484695accd4177b519bffd2c1f74d17 --- /dev/null +++ b/0002-Modify-PROD_FLAGS-and-DEV_FLAGS-parameters-for-loongarch64.patch @@ -0,0 +1,39 @@ +From c28ada9bd130bdb182d2321c40a51dab5bcc15ae Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Thu, 25 May 2023 03:19:31 +0000 +Subject: [PATCH] Modify PROD_FLAGS and DEV_FLAGS parameters for loongarch64 + +--- + builds/posix/prefix.linux_loongarch64 | 4 ++-- + src/common/classes/DbImplementation.cpp | 1 + + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/builds/posix/prefix.linux_loongarch64 b/builds/posix/prefix.linux_loongarch64 +index 70532a6..d3362d7 100644 +--- a/builds/posix/prefix.linux_loongarch64 ++++ b/builds/posix/prefix.linux_loongarch64 +@@ -1,7 +1,7 @@ + WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable -Wno-invalid-offsetof -Wno-narrowing -Wno-unused-local-typedefs + +-PROD_FLAGS=-O3 -DLINUX -DRISCV64 -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 +-DEV_FLAGS=-ggdb -DLINUX -DRISCV64 -pipe -p -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 $(WARN_FLAGS) ++PROD_FLAGS=-O3 -DLINUX -DLOONGARCH64 -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 ++DEV_FLAGS=-ggdb -DLINUX -DLOONGARCH64 -pipe -p -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 $(WARN_FLAGS) + + CXXFLAGS := $(CXXFLAGS) -std=c++11 + +diff --git a/src/common/classes/DbImplementation.cpp b/src/common/classes/DbImplementation.cpp +index 23e48a1..0315ea9 100644 +--- a/src/common/classes/DbImplementation.cpp ++++ b/src/common/classes/DbImplementation.cpp +@@ -50,6 +50,7 @@ static const UCHAR CpuArm64 = 15; + static const UCHAR CpuPowerPc64el = 16; + static const UCHAR CpuM68k = 17; + static const UCHAR CpuRiscV64 = 18; ++static const UCHAR CpuLoongArch64 = 19; + + static const UCHAR OsWindows = 0; + static const UCHAR OsLinux = 1; +-- +2.33.0 + diff --git a/firebird.spec b/firebird.spec index 6e4ed03bf36d1a3348e9d8b84434c6a71f11f5b6..8bac760163e07cec91fe91d6e5dc545cbdacc922 100644 --- a/firebird.spec +++ b/firebird.spec @@ -1,6 +1,6 @@ Name: firebird Version: 3.0.3.32900 -Release: 10 +Release: 11 Summary: SQL relational database management system License: Interbase URL: http://www.firebirdsql.org/ @@ -20,6 +20,7 @@ Patch0006: a4cb621bf55ef2101e22b1e7da5c458a1e0cc2ab.patch Patch0007: 0001-Port-to-RISC-V-64-bit-riscv64.patch Patch0008: fix-failed-to-parse-pid-from-pid-file.patch Patch0010: 0001-add-loongarch64-support-for-Firebird.patch +Patch0011: 0002-Modify-PROD_FLAGS-and-DEV_FLAGS-parameters-for-loongarch64.patch BuildRequires: autoconf automake libtommath-devel libtool ncurses-devel libicu-devel BuildRequires: libedit-devel gcc-c++ libstdc++-static systemd-units chrpath zlib-devel procmail @@ -205,6 +206,9 @@ systemd-tmpfiles --create %{_tmpfilesdir}/firebird.conf %exclude %{_docdir}/firebird/IPLicense.txt %changelog +* Thu May 25 2023 Wenlong Zhang - 3.0.3.32900-11 +- Modify PROD_FLAGS and DEV_FLAGS parameters for loongarch64 + * Mon May 8 2023 Wenlong Zhang - 3.0.3.32900-10 - add loongarch64 support