Skip to content

Commit

Permalink
freebsd: set PKG_CONFIG_PATH in Dockerfile (#1385)
Browse files Browse the repository at this point in the history
PKG_CONFIG_PATH is not set in the FreeBSD Dockerfile which means crates
which have an external system dependency cannot find those dependencies
to link against.

Closes #1384
  • Loading branch information
Emilgardis authored Dec 14, 2023
2 parents 96a8da5 + e5bfa8b commit bfc59f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/1385.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"description": "Set PKG_CONFIG_PATH in the FreeBSD Dockerfile.",
"issues": [1384],
"type": "fixed"
}

1 change: 1 addition & 0 deletions docker/Dockerfile.x86_64-unknown-freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ENV CARGO_TARGET_X86_64_UNKNOWN_FREEBSD_LINKER="$CROSS_TOOLCHAIN_PREFIX"gcc.sh \
CMAKE_TOOLCHAIN_FILE_x86_64_unknown_freebsd=/opt/toolchain.cmake \
BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_freebsd="--sysroot=$CROSS_SYSROOT" \
X86_64_UNKNOWN_FREEBSD_OPENSSL_DIR="$CROSS_SYSROOT" \
PKG_CONFIG_PATH="${CROSS_SYSROOT}/libdata/pkgconfig/:${PKG_CONFIG_PATH}" \
CROSS_CMAKE_SYSTEM_NAME=FreeBSD \
CROSS_CMAKE_SYSTEM_PROCESSOR=amd64 \
CROSS_CMAKE_CRT=freebsd \
Expand Down

0 comments on commit bfc59f0

Please sign in to comment.