summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Chelarescu <paulchelarescu@gmail.com>2018-08-07 07:30:29 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2018-08-06 22:30:29 -0700
commit6ef2eb8f7eecaad3f6162cc3fea7a83bec0e8dfd (patch)
tree37b7fdd19c7d0d187504ed56afa2a43ac1aeada5 /lib
parente380b08bab440c42e0a18c93161fbfb117f83755 (diff)
downloadspack-6ef2eb8f7eecaad3f6162cc3fea7a83bec0e8dfd.tar.gz
spack-6ef2eb8f7eecaad3f6162cc3fea7a83bec0e8dfd.tar.bz2
spack-6ef2eb8f7eecaad3f6162cc3fea7a83bec0e8dfd.tar.xz
spack-6ef2eb8f7eecaad3f6162cc3fea7a83bec0e8dfd.zip
libstdc++ detection uses os.path.realpath instead of os.readlink (#8865)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/abi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/abi.py b/lib/spack/spack/abi.py
index 1f7e16cfdb..ce31ebecbb 100644
--- a/lib/spack/spack/abi.py
+++ b/lib/spack/spack/abi.py
@@ -74,7 +74,7 @@ class ABI(object):
return None
if not output:
return None
- libpath = os.readlink(output.strip())
+ libpath = os.path.realpath(output.strip())
if not libpath:
return None
return os.path.basename(libpath)