Skip to content

Commit 4c4d347

Browse files
authored
Configure pkg-config during CPython builds (#460)
Closes #449
1 parent 916bb0d commit 4c4d347

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ export ROOT=`pwd`
99

1010
export PATH=${TOOLS_PATH}/${TOOLCHAIN}/bin:${TOOLS_PATH}/host/bin:${TOOLS_PATH}/deps/bin:$PATH
1111

12+
# Ensure that `pkg-config` (run by CPython's configure script) can find our dependencies
13+
export PKG_CONFIG_PATH=${TOOLS_PATH}/deps/share/pkgconfig:${TOOLS_PATH}/deps/lib/pkgconfig
14+
15+
# Ensure that `pkg-config` invocations include the static libraries
16+
export PKG_CONFIG="pkg-config --static"
17+
1218
# configure somehow has problems locating llvm-profdata even though it is in
1319
# PATH. The macro it is using allows us to specify its path via an
1420
# environment variable.

0 commit comments

Comments
 (0)