Skip to content

Commit 35796f8

Browse files
committed
unix: use environment variables in build-tix.sh
1 parent b116bea commit 35796f8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cpython-unix/build-tix.sh

Lines changed: 7 additions & 7 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/deps/bin:/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}/deps/bin:${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
# We need the tcl/tk source extracted because tix looks for private symbols.
1414
tar -xf tcl${TCL_VERSION}-src.tar.gz
@@ -27,9 +27,9 @@ CFLAGS="-fPIC -DUSE_INTERP_RESULT" ./configure \
2727
--prefix=/tools/deps \
2828
--x-includes=/tools/deps/include \
2929
--x-libraries=/tools/deps/lib \
30-
--with-tcl=/tools/deps/lib \
31-
--with-tk=/tools/deps/lib \
30+
--with-tcl=${TOOLS_PATH}/deps/lib \
31+
--with-tk=${TOOLS_PATH}/deps/lib \
3232
--enable-shared=no
3333

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

0 commit comments

Comments
 (0)