SHA256
10
0
forked from pool/petsc
Files
petsc/Remove-rpath-test.patch
Dmitry Roshchin f160318192 * Use COPTFLAGS, FOPTFLAGS, and CXXOPTFLAGS to pass rpm optflags to compilers instead of directly setting CFLAGS, FFLAGS, or CXXFLAGS; this is recommended by upstream and fixes build failures seen when compiling fortran modules on Leap 16 and older (see https://gitlab.com/petsc/petsc/-/issues/1727).
* Changes PETSC_ARCH definition to %_arch instead of linux-gnu-c-opt; this is in line with upstream's recommendation and what Fedora does and should be ok for openSUSE not that we no longer use hpc macros.
* Modify petsc-fix-libdir.patch to use sysconfig.get_config_vars('platlibdir') instead of sys.platlibdir for compatibility with python 3.6 (fix FTBFS on 15.6 and older).
* Actually bail out before running make when configuring fails.

OBS-URL: https://build.opensuse.org/package/show/science/petsc?expand=0&rev=147
2025-05-20 05:43:23 +00:00

26 lines
1.1 KiB
Diff

From: Egbert Eich <eich@suse.com>
Date: Tue Jun 18 13:02:15 2024 +0200
Subject: Remove rpath test
Patch-mainline: never
Git-commit: 470db80c9f69c6a707570732c67a1550dbe19ca1
References:
Signed-off-by: Egbert Eich <eich@suse.com>
Signed-off-by: Egbert Eich <eich@suse.de>
---
config/BuildSystem/config/setCompilers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: petsc-3.23.0/config/BuildSystem/config/setCompilers.py
===================================================================
--- petsc-3.23.0.orig/config/BuildSystem/config/setCompilers.py
+++ petsc-3.23.0/config/BuildSystem/config/setCompilers.py
@@ -2554,7 +2554,7 @@ class Configure(config.base.Configure):
testFlags = []
# test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options.
elif not Configure.isDarwin(self.log):
- testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,']
+ testFlags = []
else:
testFlags = ['-Wl,-rpath,']
# test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not.