diff --git a/0002-Bugfix-Append-ldl-to-fix-the-gcc-build-error.patch b/0002-Bugfix-Append-ldl-to-fix-the-gcc-build-error.patch new file mode 100644 index 0000000000000000000000000000000000000000..f0361732489f4981f4f62dc120d8933156881153 --- /dev/null +++ b/0002-Bugfix-Append-ldl-to-fix-the-gcc-build-error.patch @@ -0,0 +1,23 @@ +From d4543dbe84956fe4ae10a12da70ff1b09b687427 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E9=83=91=E6=99=A8=E5=8D=89?= +Date: Tue, 25 Jun 2024 19:05:34 +0800 +Subject: [PATCH] [Bugfix]Append -ldl to fix the gcc build error. + +--- + 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 a9e2eff..9cae81a 100644 +--- a/build/hcc_arm64le_native/hcc_aarch64_native_release.sh ++++ b/build/hcc_arm64le_native/hcc_aarch64_native_release.sh +@@ -129,5 +129,5 @@ cmake -G"Unix Makefiles" $ROOT_NATIVE_SRC/$JSONCPP -DCMAKE_BUILD_TYPE=Release -D + make -j $PARALLEL && make install && popd + + echo "Building GCC final..." && pushd $ROOT_NATIVE_DIR/obj/build-gcc-final +-LDFLAGS="${SECURE_LDFLAGS}" CFLAGS="${SECURE_CFLAGS}" CXXFLAGS="${SECURE_CFLAGS}" CFLAGS_FOR_TARGET="${SECURE_CFLAGS}" CXXFLAGS_FOR_TARGET="${SECURE_CFLAGS}" $ROOT_NATIVE_SRC/$GCC/configure --prefix=$PREFIX_NATIVE --enable-shared --enable-threads=posix --enable-checking=release --enable-__cxa_atexit --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,fortran,lto --enable-initfini-array --enable-gnu-indirect-function --with-multilib-list=lp64 --enable-multiarch --with-gnu-as --with-gnu-ld --enable-libquadmath --with-pkgversion="${COMPILER_INFO}" --with-sysroot=/ --with-gmp=$PREFIX_NATIVE --with-mpfr=$PREFIX_NATIVE --with-mpc=$PREFIX_NATIVE --with-isl=$PREFIX_NATIVE --libdir=$PREFIX_NATIVE/lib64 --disable-bootstrap --build=$BUILD --host=$HOST --target=$TARGET --enable-bolt ++LDFLAGS="${SECURE_LDFLAGS} -ldl" CFLAGS="${SECURE_CFLAGS}" CXXFLAGS="${SECURE_CFLAGS}" CFLAGS_FOR_TARGET="${SECURE_CFLAGS}" CXXFLAGS_FOR_TARGET="${SECURE_CFLAGS}" $ROOT_NATIVE_SRC/$GCC/configure --prefix=$PREFIX_NATIVE --enable-shared --enable-threads=posix --enable-checking=release --enable-__cxa_atexit --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,fortran,lto --enable-initfini-array --enable-gnu-indirect-function --with-multilib-list=lp64 --enable-multiarch --with-gnu-as --with-gnu-ld --enable-libquadmath --with-pkgversion="${COMPILER_INFO}" --with-sysroot=/ --with-gmp=$PREFIX_NATIVE --with-mpfr=$PREFIX_NATIVE --with-mpc=$PREFIX_NATIVE --with-isl=$PREFIX_NATIVE --libdir=$PREFIX_NATIVE/lib64 --disable-bootstrap --build=$BUILD --host=$HOST --target=$TARGET --enable-bolt + make -j $PARALLEL && make install && popd +-- +2.33.0 + diff --git a/gcc-for-openEuler.spec b/gcc-for-openEuler.spec index 2c2e2d65b9955c6dbc0778dcf77780e903bace17..b08180622a7f66b2e7d2e6c04614c4ceaccd3886 100644 --- a/gcc-for-openEuler.spec +++ b/gcc-for-openEuler.spec @@ -1,6 +1,6 @@ Name: gcc-for-openEuler Version: 1.0.8 -Release: 12 +Release: 13 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 @@ -16,6 +16,7 @@ BuildRequires: git bison flex texinfo autoconf libtool elfutils-libelf-devel gl BuildRequires: chrpath python3 zlib-devel lksctp-tools-devel Patch1: 0001-Change-branch-name-for-jemalloc.patch +Patch2: 0002-Bugfix-Append-ldl-to-fix-the-gcc-build-error.patch %description GCC released as a binary package for openEuler and other OSes. @@ -43,6 +44,9 @@ sha256sum %{build_name}.tar.gz > %{build_name}.tar.gz.sha256 %attr(755, root, root) /%{build_name}.tar.gz.sha256 %changelog +* Tue Jun 25 2024 Zheng Chenhui - 1.0.8-13 +- Append -ldl to fix the gcc build error. + * Tue Jun 25 2024 Zheng Chenhui - 1.0.8-12 - Update openssl version.