8.9. pkgconf 2.5.1
Build and install pkgconf in the final target environment to provide pkg-config-compatible dependency queries.
Input assumption: pkgconf-2.5.1.tar.xz is already present in /sources from the chapter 4 source staging step.
Source URL: https://distfiles.ariadne.space/pkgconf/pkgconf-2.5.1.tar.xz
Upstream build note: upstream documents pkgconf as an autotools-based UNIX build (./configure, make, make install) for release tarballs.
Licenses:
- ISC
Dependencies:
- musl (libc)
- make
pkgconf is a compiler and linker flag resolver for pkg-config metadata files. we need it to provide pkg-config-compatible dependency resolution for later package builds in chapter 8.
Extract and Enter the Source Tree
cd /sources
tar -xf pkgconf-2.5.1.tar.xz
cd pkgconf-2.5.1
Configure pkgconf
lbi_configure \
--with-system-libdir=/system/libraries \
--with-system-includedir=/system/headers
Build pkgconf
make $LWI_MAKE_FLAGS
Install pkgconf
make install
Install pkg-config compatibility symlink
ln -sf pkgconf /system/binaries/pkg-config
ln -sf pkgconf.1 /system/documentation/man-pages/man1/pkg-config.1
After this step is complete, you can remove the extracted source directory and source tarball from
/sources if you do not plan to rebuild pkgconf again.
Command Explanations
cd /sources,tar -xf, andcd pkgconf-...: Enter the staged pkgconf source tree.lbi_configure: Applies the book's/systeminstall layout.--with-system-libdir=/system/librariesand--with-system-includedir=/system/headers: Teach pkgconf the target's default library and header locations.make $LWI_MAKE_FLAGSandmake install: Build and install pkgconf.ln -sf pkgconf ... pkg-config: Provides the commonpkg-configcommand name and manual-page alias.