Skip to content

Commit b2aff13

Browse files
committed
macos: add libraries to cpython distribution
The libraries are needed so we can re-link the object files, which reference symbols in them.
1 parent a597e4e commit b2aff13

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpython-macos/build-cpython.sh

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ for d in Modules Objects Parser Programs Python; do
4949
cp -av $d/*.o ${ROOT}/out/python/build/$d/
5050
done
5151

52+
# The object files need to be linked against library dependencies. So copy
53+
# library files as well.
54+
mkdir ${ROOT}/out/python/lib
55+
cp -av ${DEPS_DIR}/lib/*.a ${ROOT}/out/python/lib/
56+
5257
# config.c defines _PyImport_Inittab and extern references to modules, which
5358
# downstream consumers may want to strip. We bundle config.c and config.c.in so
5459
# a custom one can be produced downstream.

0 commit comments

Comments
 (0)