From 877fe235fa5354cd393950a1c5b3d18d2d1eec266fd7cf24d99227a60d6fb330 Mon Sep 17 00:00:00 2001 From: Nicolas Morey Date: Mon, 3 Nov 2025 17:42:37 +0100 Subject: [PATCH] fix fPIC on aarch64 Signed-off-by: Nicolas Morey --- configure-fix-fPIC-on-aarch64.patch | 34 +++++++++++++++++++++++++++++ mpiP.changes | 5 +++++ mpiP.spec | 2 +- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 configure-fix-fPIC-on-aarch64.patch diff --git a/configure-fix-fPIC-on-aarch64.patch b/configure-fix-fPIC-on-aarch64.patch new file mode 100644 index 0000000..ebb3d5c --- /dev/null +++ b/configure-fix-fPIC-on-aarch64.patch @@ -0,0 +1,34 @@ +commit 9df174bdffe6cce86961116d6c0842064cb6bef0 +Author: Nicolas Morey +Date: Mon Nov 3 17:41:33 2025 +0100 + + configure: fix fPIC on aarch64 + + Signed-off-by: Nicolas Morey + +diff --git configure configure +index 25352125f048..87654cb08d03 100755 +--- configure ++++ configure +@@ -5049,7 +5049,7 @@ _ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking PIC flags" >&5 + $as_echo_n "checking PIC flags... " >&6; } + if `$CC -fpic 2>&1 | grep 'warning' >/dev/null 2>&1` ; then +- PIC_FLAGS="-DPIC" ++ PIC_FLAGS="-fPIC -DPIC" + else + PIC_FLAGS="-fpic -DPIC" + fi +diff --git configure.ac configure.ac +index ed6cdbb3c18e..717520e2e224 100644 +--- configure.ac ++++ configure.ac +@@ -422,7 +422,7 @@ AC_CHECK_SIZEOF(void*) + + AC_MSG_CHECKING(PIC flags) + if `$CC -fpic 2>&1 | grep 'warning' >/dev/null 2>&1` ; then +- PIC_FLAGS="-DPIC" ++ PIC_FLAGS="-fPIC -DPIC" + else + PIC_FLAGS="-fpic -DPIC" + fi diff --git a/mpiP.changes b/mpiP.changes index 967eb83..ae90ebe 100644 --- a/mpiP.changes +++ b/mpiP.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 3 16:41:06 UTC 2025 - Nicolas Morey + +- Add configure-fix-fPIC-on-aarch64.patch to fix -fPIC on aarch64 + ------------------------------------------------------------------- Wed Apr 30 08:17:08 UTC 2025 - Bernhard Wiedemann diff --git a/mpiP.spec b/mpiP.spec index 5cf07e1..6bef316 100644 --- a/mpiP.spec +++ b/mpiP.spec @@ -69,7 +69,7 @@ Patch3: pc_lookup-replace-PTR-with-void.patch Patch4: configure-fix-compilation-error-for-GCC-14.patch Patch5: arch-add-generic-arch-using-GCC-builtins.patch Patch6: reproducible.patch - +Patch7: configure-fix-fPIC-on-aarch64.patch BuildRequires: %{flavor}-devel BuildRequires: binutils-devel BuildRequires: dejagnu -- 2.51.1