Skip to content

Commit d6ca1a0

Browse files
committed
fixup! Build libtcl
1 parent 5d5f2b0 commit d6ca1a0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

cpython-unix/build-cpython.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,9 @@ if [ -d "${TOOLS_PATH}/deps/lib/tcl8" ]; then
12511251
cp -av $source ${ROOT}/out/python/install/lib/
12521252
done
12531253

1254-
if [[ "${PYBUILD_PLATFORM}" != macos* ]]; then
1254+
if [[ "${PYBUILD_PLATFORM}" == macos* ]]; then
1255+
cp -av ${TOOLS_PATH}/deps/lib/lib*.dylib ${ROOT}/out/python/install/lib/
1256+
else
12551257
cp -av ${TOOLS_PATH}/deps/lib/lib*.so ${ROOT}/out/python/install/lib/
12561258
fi
12571259
fi

cpython-unix/build-tcl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ./configure \
5959
--enable-threads
6060

6161
make -j ${NUM_CPUS}
62-
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out
62+
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out DYLIB_INSTALL_DIR=@rpath
6363
make -j ${NUM_CPUS} install-private-headers DESTDIR=${ROOT}/out
6464

6565
if [ -n "${STATIC}" ]; then

cpython-unix/build-tk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fi
5454

5555
make -j ${NUM_CPUS}
5656
touch wish
57-
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out
57+
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out DYLIB_INSTALL_DIR=@rpath
5858
make -j ${NUM_CPUS} install-private-headers DESTDIR=${ROOT}/out
5959

6060
# For some reason libtk*.a have weird permissions. Fix that.

0 commit comments

Comments
 (0)