Make libstdc++-detection work on Darwin (#1778)

This commit is contained in:
Erik Schnetter 2016-09-14 22:42:14 -04:00 committed by Todd Gamblin
parent 2a823fbdfd
commit 6117ef44e4

View File

@ -54,10 +54,10 @@ def _gcc_get_libstdcxx_version(self, version):
output = None output = None
if compiler.cxx: if compiler.cxx:
rungcc = Executable(compiler.cxx) rungcc = Executable(compiler.cxx)
libname = "libstdc++.so" libname = "libstdc++." + dso_suffix
elif compiler.cc: elif compiler.cc:
rungcc = Executable(compiler.cc) rungcc = Executable(compiler.cc)
libname = "libgcc_s.so" libname = "libgcc_s." + dso_suffix
else: else:
return None return None
try: try: