1 From 94c4768cd69b026e498d92133dd6c7d8589cf911 Mon Sep 17 00:00:00 2001
2 From: Jiajie Chen <c@jia.je>
3 Date: Sat, 25 Jun 2022 10:19:44 +0800
4 Subject: [PATCH] Patch LDCXXSHARED for macOS along with LDSHARED
6 In Nixpkgs, we patched distutils to respect LDCXXSHARED environment, so
7 the replacement should be taken on LDCXXSHARED as well.
9 cocotb_build_libs.py | 1 +
10 1 file changed, 1 insertion(+)
12 diff --git a/cocotb_build_libs.py b/cocotb_build_libs.py
13 index 66097ec2..d5555b36 100755
14 --- a/cocotb_build_libs.py
15 +++ b/cocotb_build_libs.py
16 @@ -583,6 +583,7 @@ def get_ext():
18 if sys.platform == "darwin":
19 cfg_vars["LDSHARED"] = cfg_vars["LDSHARED"].replace("-bundle", "-dynamiclib")
20 + cfg_vars["LDCXXSHARED"] = cfg_vars["LDCXXSHARED"].replace("-bundle", "-dynamiclib")
22 share_lib_dir = os.path.relpath(os.path.join(cocotb_share_dir, "lib"))
23 include_dir = os.path.relpath(os.path.join(cocotb_share_dir, "include"))