diff --git a/0003-Modify-openssl-compilation-options-to-match-src-repo.patch b/0003-Modify-openssl-compilation-options-to-match-src-repo.patch new file mode 100644 index 0000000000000000000000000000000000000000..1dda337ab804e0e8ff96442016277ca6e9fd14d3 --- /dev/null +++ b/0003-Modify-openssl-compilation-options-to-match-src-repo.patch @@ -0,0 +1,25 @@ +From f6b6d6691406fdc47859c65a4369afe9fd2adbc1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E9=83=91=E6=99=A8=E5=8D=89?= +Date: Fri, 27 Sep 2024 17:02:41 +0800 +Subject: [PATCH] Modify openssl compilation options to match src repository. + +--- + build/hcc_arm64le_native/hcc_aarch64_native_release.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/build/hcc_arm64le_native/hcc_aarch64_native_release.sh b/build/hcc_arm64le_native/hcc_aarch64_native_release.sh +index 1359f4f..fc834ed 100644 +--- a/build/hcc_arm64le_native/hcc_aarch64_native_release.sh ++++ b/build/hcc_arm64le_native/hcc_aarch64_native_release.sh +@@ -88,7 +88,7 @@ make pure_install DESTDIR=$PREFIX_PERL && make install -j $PARALLEL && popd + # Temporarily install OpenSSL to provide fixed libcrypto.so version for various OSes. + echo "Building openssl for autofdo..." && pushd $ROOT_NATIVE_DIR/obj/build-openssl + cp -rf $ROOT_NATIVE_SRC/$OPENSSL/* . +-LDFLAGS="${SECURE_LDFLAGS}" CFLAGS="${SECURE_CFLAGS}" CXXFLAGS="${SECURE_CFLAGS}" ./Configure --prefix=$PREFIX_OPENSSL --openssldir=$PREFIX_OPENSSL enable-ec_nistp_64_gcc_128 zlib enable-camellia enable-seed enable-rfc3779 enable-sctp enable-cms enable-md2 enable-rc5 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers no-mdc2 no-ec2m enable-sm2 enable-sm3 enable-sm4 shared linux-aarch64 -Wa,--noexecstack -DPURIFY '-DDEVRANDOM="\"/dev/urandom\""' ++LDFLAGS="${SECURE_LDFLAGS}" CFLAGS="${SECURE_CFLAGS}" CXXFLAGS="${SECURE_CFLAGS}" ./Configure --prefix=$PREFIX_OPENSSL --openssldir=$PREFIX_OPENSSL enable-ec_nistp_64_gcc_128 zlib enable-camellia enable-seed enable-rfc3779 enable-cms enable-md2 enable-rc5 no-mdc2 no-ec2m enable-sm2 enable-sm4 shared linux-aarch64 -Wa,--noexecstack -DPURIFY '-DDEVRANDOM="\"/dev/urandom\""' + make -j $PARALLEL && make install -j $PARALLEL && popd + + export OPENSSL_ROOT_DIR=$PREFIX_OPENSSL +-- +2.33.0 + diff --git a/gcc-for-openEuler.spec b/gcc-for-openEuler.spec index a7ff97ae879e2d70c9c8580ce1fc0af35d55695a..adffd6e7aa93f7fc12ead4585a485c6da5731465 100644 --- a/gcc-for-openEuler.spec +++ b/gcc-for-openEuler.spec @@ -1,6 +1,6 @@ Name: gcc-for-openEuler Version: 2.0.0 -Release: 1 +Release: 2 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: chrpath centos-release-scl devtoolset-7 python3 zlib-devel lksctp Patch1: 0001-Change-branch-name-for-mathlib-and-jemalloc.patch Patch2: 0002-Temporarily-fix-pin-gcc-client-build-error.patch +Patch3: 0003-Modify-openssl-compilation-options-to-match-src-repo.patch %description GCC released as a binary package for openEuler and other OSes. @@ -44,6 +45,9 @@ sha256sum %{build_name}.tar.gz > %{build_name}.tar.gz.sha256 %attr(755, root, root) /%{build_name}.tar.gz.sha256 %changelog +* Fri Sep 27 2024 Zheng Chenhui - 2.0.0-2 +- Modify openssl compilation options to match src repository. + * Fri Sep 20 2024 Zheng Chenhui - 2.0.0-1 - Update to GCC12 version.