Skip to content

Commit

Permalink
Configure pkg-config during CPython builds (#460)
Browse files Browse the repository at this point in the history
Closes #449
  • Loading branch information
zanieb authored Jan 1, 2025
1 parent 916bb0d commit 4c4d347
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export ROOT=`pwd`

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

# Ensure that `pkg-config` (run by CPython's configure script) can find our dependencies
export PKG_CONFIG_PATH=${TOOLS_PATH}/deps/share/pkgconfig:${TOOLS_PATH}/deps/lib/pkgconfig

# Ensure that `pkg-config` invocations include the static libraries
export PKG_CONFIG="pkg-config --static"

# configure somehow has problems locating llvm-profdata even though it is in
# PATH. The macro it is using allows us to specify its path via an
# environment variable.
Expand Down

0 comments on commit 4c4d347

Please sign in to comment.