Skip to content

Commit

Permalink
Configure pkg-config during CPython builds
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Dec 30, 2024
1 parent 4d400f4 commit 597fb28
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` (as 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 597fb28

Please sign in to comment.