Do not explicitly link with libstdc++
@@ -368,7 +368,7 @@ def _get_common_lib_ext(include_dir, share_lib_dir):
os.path.join("cocotb", "libs", "libgpi"),
define_macros=[("GPI_EXPORTS", ""), ("LIB_EXT", _get_lib_ext_name()), ("SINGLETON_HANDLES", "")],
include_dirs=[include_dir],
- libraries=["cocotbutils", "gpilog", "cocotb", "stdc++"],
+ libraries=["cocotbutils", "gpilog", "cocotb"],
sources=libgpi_sources,
extra_link_args=_extra_link_args(lib_name="libgpi", rpaths=["$ORIGIN"]),
extra_compile_args=_extra_cxx_compile_args,
@@ -436,7 +436,7 @@ def _get_vhpi_lib_ext(
os.path.join("cocotb", "libs", lib_name),
include_dirs=[include_dir],
define_macros=[("COCOTBVHPI_EXPORTS", ""), ("VHPI_CHECKING", 1)] + [(sim_define, "")],
- libraries=["gpi", "gpilog", "stdc++"] + extra_lib,
+ libraries=["gpi", "gpilog"] + extra_lib,
library_dirs=extra_lib_dir,
sources=libcocotbvhpi_sources,
extra_link_args=_extra_link_args(lib_name=lib_name, rpaths=["$ORIGIN"]),
@@ -523,7 +523,7 @@ def get_ext():
os.path.join("cocotb", "libs", lib_name),
define_macros=[("COCOTBFLI_EXPORTS", "")],
include_dirs=[include_dir, modelsim_include_dir],
- libraries=["gpi", "gpilog", "stdc++"] + modelsim_extra_lib,
+ libraries=["gpi", "gpilog"] + modelsim_extra_lib,
library_dirs=modelsim_extra_lib_path,
sources=fli_sources,
extra_link_args=_extra_link_args(lib_name=lib_name, rpaths=["$ORIGIN"]),
