u-config
pkg-config-linux-amd64is a more optimized target compared to the more portablepkg-configtarget or manually buildingmain_posix.c- According to “personal” “micro”benchmarks,
u-configis around 1.5x faster thanpkgconfwith a slightly smaller footprint - Does not build with LTO enabled as upstream explicitly disables LTO
- We can use
OPT="$CFLAGS"instead ofLINUX_CFLAGS="$CFLAGS"but then we’d lose access to PIE.. - Does not support
PKG_CONFIG_SYSROOT_DIRbut seems to setpc_sysrootdirto/insrc/u-config.cby default radstill needs to setPKG_CONFIG_SYSROOT_DIRincrossas we can’t guarantee whatpkg-configimplementation the host is using- Requires
pkg.m4frompkgconf; otherwise several packages (eiwd,libarchiveandmake) will not build