File petsc-3.3-p2-no-rpath.patch of Package petsc.15535
---
config/BuildSystem/config/setCompilers.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/config/BuildSystem/config/setCompilers.py
+++ b/config/BuildSystem/config/setCompilers.py
@@ -1443,9 +1443,9 @@ class Configure(config.base.Configure):
self.pushLanguage(language)
# test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options.
if not Configure.isDarwin(self.log):
- testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,']
+ testFlags = []
else:
- testFlags = ['-Wl,-rpath,']
+ testFlags = []
# test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not.
if self.isSun(self.framework.getCompiler(), self.log):
testFlags.insert(0,'-R')