Skip to content

Commit e387e79

Browse files
committed
Only install libstc++ on linux
1 parent 8e43bf2 commit e387e79

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

relenv/build/common.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,15 +1439,6 @@ def finalize(env, dirs, logfp):
14391439
# Install relenv-sysconfigdata module
14401440
libdir = pathlib.Path(dirs.prefix) / "lib"
14411441

1442-
shutil.copy(
1443-
pathlib.Path(dirs.toolchain)
1444-
/ env["RELENV_HOST"]
1445-
/ "sysroot"
1446-
/ "lib"
1447-
/ "libstdc++.so.6",
1448-
libdir,
1449-
)
1450-
14511442
def find_pythonlib(libdir):
14521443
for root, dirs, files in os.walk(libdir):
14531444
for _ in dirs:
@@ -1510,6 +1501,16 @@ def find_pythonlib(libdir):
15101501
format_shebang("../../../bin/python3"),
15111502
)
15121503

1504+
shutil.copy(
1505+
pathlib.Path(dirs.toolchain)
1506+
/ env["RELENV_HOST"]
1507+
/ "sysroot"
1508+
/ "lib"
1509+
/ "libstdc++.so.6",
1510+
libdir,
1511+
)
1512+
1513+
15131514
# Moved in python 3.13 or removed?
15141515
if (pymodules / "cgi.py").exists():
15151516
patch_shebang(

0 commit comments

Comments
 (0)