Skip to content

Commit 61c878d

Browse files
committed
unix: use environment variables in build-tcl.sh
We can now build tcl on macOS. Not yet sure if it works, but hey.
1 parent c6b16da commit 61c878d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cpython-unix/build-tcl.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
set -ex
77

8-
cd /build
8+
ROOT=`pwd`
99

10-
export PATH=/tools/${TOOLCHAIN}/bin:/tools/host/bin:$PATH
11-
export PKG_CONFIG_PATH=/tools/deps/share/pkgconfig:/tools/deps/lib/pkgconfig
10+
export PATH=${TOOLS_PATH}/${TOOLCHAIN}/bin:${TOOLS_PATH}/host/bin:$PATH
11+
export PKG_CONFIG_PATH=${TOOLS_PATH}/deps/share/pkgconfig:${TOOLS_PATH}/deps/lib/pkgconfig
1212

1313
tar -xf tcl8.6.9-src.tar.gz
1414
pushd tcl8.6.9
@@ -33,9 +33,9 @@ rm -rf pkgs/sqlite* pkgs/tdbc*
3333

3434
pushd unix
3535

36-
CFLAGS="-fPIC -I/tools/deps/include" ./configure \
36+
CFLAGS="-fPIC -I${TOOLS_PATH}/deps/include" ./configure \
3737
--prefix=/tools/deps \
3838
--enable-shared=no
3939

40-
make -j `nproc`
41-
make -j `nproc` install DESTDIR=/build/out
40+
make -j ${NUM_CPUS}
41+
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out

0 commit comments

Comments
 (0)