Skip to content

Commit a7e8b23

Browse files
committed
unix: use environment variables in build-xproto.sh
1 parent 61c878d commit a7e8b23

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cpython-unix/build-xproto.sh

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

66
set -ex
77

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

1010
pkg-config --version
1111

12-
export PATH=/tools/${TOOLCHAIN}/bin:/tools/host/bin:$PATH
13-
export PKG_CONFIG_PATH=/tools/deps/share/pkgconfig
12+
export PATH=${TOOLS_PATH}/${TOOLCHAIN}/bin:${TOOLS_PATH}/host/bin:$PATH
13+
export PKG_CONFIG_PATH=${TOOLS_PATH}/deps/share/pkgconfig
1414

1515
tar -xf xproto-${XPROTO_VERSION}.tar.gz
1616
pushd xproto-${XPROTO_VERSION}
1717

1818
CFLAGS="-fPIC" ./configure \
1919
--prefix=/tools/deps
2020

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

0 commit comments

Comments
 (0)