forked from pool/petsc
* 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
26 lines
1.1 KiB
Diff
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.
|