Skip to content

Commit

Permalink
fix _ctypes obj dir for static linking
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Sep 23, 2023
1 parent f3c1244 commit 52f98f6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/cpython-build-emsdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,12 @@ END
if pushd ${SDKROOT}/build/cpython-wasm
then
mkdir -p ${SDKROOT}/prebuilt/emsdk
OBJS="build/temp.emscripten-wasm32-${PYBUILD}/opt/python-wasm-sdk/src/Python-3.11.5/Modules/_ctypes/_ctypes.o \
build/temp.emscripten-wasm32-${PYBUILD}/opt/python-wasm-sdk/src/Python-3.11.5/Modules/_ctypes/callbacks.o \
build/temp.emscripten-wasm32-${PYBUILD}/opt/python-wasm-sdk/src/Python-3.11.5/Modules/_ctypes/callproc.o \
build/temp.emscripten-wasm32-${PYBUILD}/opt/python-wasm-sdk/src/Python-3.11.5/Modules/_ctypes/cfield.o \
build/temp.emscripten-wasm32-${PYBUILD}/opt/python-wasm-sdk/src/Python-3.11.5/Modules/_ctypes/stgdict.o"
OBJDIR=$(echo -n build/temp.emscripten-wasm32-${PYBUILD}/opt/python-wasm-sdk/src/Python-3.*)
OBJS="${OBJDIR}/Modules/_ctypes/_ctypes.o \
${OBJDIR}/Modules/_ctypes/callbacks.o \
${OBJDIR}/Modules/_ctypes/callproc.o \
${OBJDIR}/Modules/_ctypes/cfield.o \
${OBJDIR}/Modules/_ctypes/stgdict.o"

$SDKROOT/emsdk/upstream/emscripten/emar rcs ${SDKROOT}/prebuilt/emsdk/lib_ctypes${PYBUILD}.a $OBJS
popd
Expand Down

0 comments on commit 52f98f6

Please sign in to comment.