File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 5
5
6
6
set -ex
7
7
8
- cd /build
8
+ ROOT= ` pwd `
9
9
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
12
12
13
13
tar -xf tk${TK_VERSION} -src.tar.gz
14
14
pushd tk8.6.9/unix
15
15
16
16
CFLAGS=" -fPIC" ./configure \
17
17
--prefix=/tools/deps \
18
- --x-includes=/tools /deps/include \
19
- --x-libraries=/tools /deps/lib \
20
- --with-tcl=/tools /deps/lib \
18
+ --x-includes=${TOOLS_PATH} /deps/include \
19
+ --x-libraries=${TOOLS_PATH} /deps/lib \
20
+ --with-tcl=${TOOLS_PATH} /deps/lib \
21
21
--enable-shared=no
22
22
23
23
# For some reason musl isn't link libXau and libxcb. So we hack the Makefile
@@ -32,7 +32,7 @@ if [ "${CC}" = "musl-clang" ]; then
32
32
sed -i ' s/install-binaries: $(TK_STUB_LIB_FILE) $(TK_LIB_FILE) ${WISH_EXE}/install-binaries: $(TK_STUB_LIB_FILE) $(TK_LIB_FILE)/' Makefile
33
33
fi
34
34
35
- make -j ` nproc `
35
+ make -j ${NUM_CPUS}
36
36
touch wish
37
- make -j ` nproc ` install DESTDIR=/build /out
38
- rm /build /out/tools/deps/bin/wish*
37
+ make -j ${NUM_CPUS} install DESTDIR=${ROOT} /out
38
+ rm ${ROOT} /out/tools/deps/bin/wish*
You can’t perform that action at this time.
0 commit comments