libstdc++ detection uses os.path.realpath instead of os.readlink (#8865)

This commit is contained in:
Paul Chelarescu 2018-08-07 07:30:29 +02:00 committed by Todd Gamblin
parent e380b08bab
commit 6ef2eb8f7e

View File

@ -74,7 +74,7 @@ def _gcc_get_libstdcxx_version(self, version):
return None return None
if not output: if not output:
return None return None
libpath = os.readlink(output.strip()) libpath = os.path.realpath(output.strip())
if not libpath: if not libpath:
return None return None
return os.path.basename(libpath) return os.path.basename(libpath)