From 48708a582acdf4eb7f1db45851e4f58bf5dd71e4 Mon Sep 17 00:00:00 2001 From: zhengchenhui Date: Thu, 20 Mar 2025 17:18:43 +0800 Subject: [PATCH] Move libmathlib.so to lib64_public. --- 0002-Move-libmathlib.so-to-lib64_public.patch | 25 +++++++++++++++++++ gcc-for-openEuler.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0002-Move-libmathlib.so-to-lib64_public.patch diff --git a/0002-Move-libmathlib.so-to-lib64_public.patch b/0002-Move-libmathlib.so-to-lib64_public.patch new file mode 100644 index 0000000..c6c696c --- /dev/null +++ b/0002-Move-libmathlib.so-to-lib64_public.patch @@ -0,0 +1,25 @@ +From c0a76f0688d683238cb40308e02b721a2c66937c Mon Sep 17 00:00:00 2001 +From: yinchuang +Date: Thu, 20 Mar 2025 16:36:49 +0800 +Subject: [PATCH] Move libmathlib.so to lib64_public. + +--- + build/hcc_arm64le_native/hcc_aarch64_native_final.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/build/hcc_arm64le_native/hcc_aarch64_native_final.sh b/build/hcc_arm64le_native/hcc_aarch64_native_final.sh +index 487c696..77b644f 100644 +--- a/build/hcc_arm64le_native/hcc_aarch64_native_final.sh ++++ b/build/hcc_arm64le_native/hcc_aarch64_native_final.sh +@@ -51,7 +51,7 @@ echo "math-cflags += ${CFLAGS_FOR_MATHLIB}" >>config.mk + echo "CFLAGS += ${CFLAGS_FOR_MATHLIB}" >>config.mk + sed -i "s/SUBS = math string networking/SUBS = math string/g" config.mk + sed -i "s@prefix = /usr@prefix = ${PREFIX_NATIVE}@" Makefile +-sed -i "s@libdir = \$(prefix)/lib@libdir = \${PREFIX_PUBLIC}@" Makefile ++sed -i "s@libdir = \$(prefix)/lib@libdir = ${PREFIX_PUBLIC}@" Makefile + make -j $PARALLEL && make install -j $PARAELLEL && popd + + echo "Building jemalloc..." && pushd $ROOT_NATIVE_SRC/$JEMALLOC +-- +2.33.0 + diff --git a/gcc-for-openEuler.spec b/gcc-for-openEuler.spec index e60db7e..099a3d3 100644 --- a/gcc-for-openEuler.spec +++ b/gcc-for-openEuler.spec @@ -1,6 +1,6 @@ Name: gcc-for-openEuler Version: 2.0.2 -Release: 2 +Release: 3 Summary: GCC released as a binary package for openEuler and other OSes. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2 and BSD @@ -17,6 +17,7 @@ BuildRequires: git bison flex texinfo autoconf libtool elfutils-libelf-devel gl BuildRequires: chrpath centos-release-scl devtoolset-7 python3 zlib-devel lksctp-tools-devel python3-setuptools Patch1: 0001-Change-branch-name-for-mathlib-and-jemalloc.patch +Patch2: 0002-Move-libmathlib.so-to-lib64_public.patch %description GCC released as a binary package for openEuler and other OSes. @@ -46,6 +47,9 @@ sha256sum %{build_name}.tar.gz > %{build_name}.tar.gz.sha256 %attr(755, root, root) /%{build_name}.tar.gz.sha256 %changelog +* Thu Mar 20 2025 Zheng Chenhui - 2.0.2-3 +- Move libmathlib.so to lib64_public. + * Tue Mar 18 2025 Zheng Chenhui - 2.0.2-2 - Update version of packages. -- Gitee