File: build-no-rpath.patch

package info (click to toggle)
petsc 3.24.1%2Bdfsg1-1exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 524,004 kB
  • sloc: ansic: 762,842; cpp: 52,564; python: 39,546; f90: 17,688; javascript: 3,493; makefile: 3,206; sh: 1,508; xml: 619; objc: 445; java: 13; csh: 1
file content (29 lines) | stat: -rw-r--r-- 1,215 bytes parent folder | download
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	2025-11-05 12:08:08.974346079 +0100
+++ petsc/config/BuildSystem/config/setCompilers.py	2025-11-05 12:08:08.960905987 +0100
@@ -2572,11 +2572,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')
@@ -2594,6 +2590,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,']