1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
This gets rid of rpath in the build system.
Index: petsc/config/BuildSystem/config/setCompilers.py
===================================================================
--- petsc.orig/config/BuildSystem/config/setCompilers.py 2024-11-26 00:35:32.147612784 +0100
+++ petsc/config/BuildSystem/config/setCompilers.py 2024-11-26 00:35:32.147612784 +0100
@@ -2530,11 +2530,7 @@
return
def checkSharedLinkerPaths(self):
- '''Determine the shared linker path options
- - IRIX: -rpath
- - Linux, OSF: -Wl,-rpath,
- - Solaris: -R
- - FreeBSD: -Wl,-R,'''
+ '''Linker rpath setting turned off for Debian PETSc package.'''
languages = ['C']
if hasattr(self, 'CXX'):
languages.append('Cxx')
@@ -2552,6 +2548,9 @@
if Configure.isCygwin(self.log):
self.logPrint('Cygwin detected! disabling -rpath test.')
testFlags = []
+ elif True:
+ self.logPrint('Disabling -rpath test for debian builds.')
+ 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,']
|