SHA256
6
0
forked from pool/mpiP

fix fPIC on aarch64 #1

Manually merged
HPC merged 1 commits from NMorey/mpiP:main into main 2025-11-03 17:57:40 +01:00
3 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
commit 9df174bdffe6cce86961116d6c0842064cb6bef0
Author: Nicolas Morey <nmorey@suse.com>
Date: Mon Nov 3 17:41:33 2025 +0100
configure: fix fPIC on aarch64
Signed-off-by: Nicolas Morey <nmorey@suse.com>
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

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 3 16:41:06 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>
- Add configure-fix-fPIC-on-aarch64.patch to fix -fPIC on aarch64
-------------------------------------------------------------------
Wed Apr 30 08:17:08 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>

View File

@@ -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