Skip to content

Commit

Permalink
[chore](third-party) Configure the search paths for pkg-config and cm…
Browse files Browse the repository at this point in the history
…ake (apache#18624)

Currently, our third party libraries are built by autotools or cmake. Under some scenarios, we may use system-wide headers or libraries to build them which may make the build process fail.

We can configure the search paths explicitly to help autotools and cmake find the right dependencies.
  • Loading branch information
adonis0147 authored and gnehil committed Apr 21, 2023
1 parent 3e77865 commit 86326ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions thirdparty/build-thirdparty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ pushd "${TP_DIR}/installed"/
ln -sf lib64 lib
popd

# Configure the search paths for pkg-config and cmake
export PKG_CONFIG_PATH="${TP_DIR}/installed/lib64/pkgconfig"
export CMAKE_PREFIX_PATH="${TP_DIR}/installed"

echo "PKG_CONFIG_PATH: ${PKG_CONFIG_PATH}"
echo "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}"

check_prerequest() {
local CMD="$1"
local NAME="$2"
Expand Down

0 comments on commit 86326ab

Please sign in to comment.