kumquat-buildroot/docs/manual
Stefan Fröberg 834f9311aa pkg-infra: add <pkg>_CONFIG_FIXUP to fix *-config files
This patch will add <pkg>_CONFIG_FIXUP variable to buildroot infra.

It's purpose is to inform buildroot that the package in question
contains some $(STAGING_DIR)/usr/bin/*-config files and that we
want to automatically fix prefixes of such files.

It is often the case that many packages call these
files during their configuration step to determine 3rd party
library package locations and any flags needed to link against them.

For example:
Some package might try to check the existense and linking flags
of NSPR package by calling $(STAGING_DIR)/usr/bin/nspr-config --prefix.
Without this fix. NSPR would return /usr/ as it's prefix which is
wrong when cross-compiling.
Correct would be $(STAGING_DIR)/usr.

All packages that have <pkg>_INSTALL_STAGING = YES defined and
also install some config file(s) into $(STAGING_DIR)/usr/bin must
hereafter also define <pkg>_CONFIG_FIXUP with the correspondig
filename(s).

For example:

DIVINE_CONFIG_FIXUP = divine-config

or for multiple files:

IMAGEMAGICK_CONFIG_FIXUP = Magick-config Wand-config

Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-02-04 23:47:34 +01:00
..
adding-packages-autotools.txt
adding-packages-cmake.txt
adding-packages-conclusion.txt
adding-packages-directory.txt
adding-packages-generic.txt pkg-infra: add <pkg>_CONFIG_FIXUP to fix *-config files 2013-02-04 23:47:34 +01:00
adding-packages-gettext.txt
adding-packages-tips.txt
adding-packages.txt
advanced.txt
appendix.txt
beyond-buildroot.txt
board-support.txt
ccache-support.txt
common-usage.txt
configure.txt
contribute.txt
customize-busybox-config.txt
customize-kernel-config.txt
customize-rootfs.txt
customize-toolchain.txt
customize-uclibc-config.txt
customize.txt
deprecated-list.txt
developer-guide.txt
download-infra.txt
download-location.txt
eclipse-integration.txt
faq-troubleshooting.txt
get-involved.txt
getting.txt
going-further.txt
how-buildroot-works.txt
introduction.txt
legal-notice.txt
make-tips.txt
makedev-syntax.txt
manual.mk
manual.txt
package-make-target.txt
patch-policy.txt
pkg-list.txt
prerequisite.txt
rebuilding-packages.txt
starting-up.txt
using-buildroot-toolchain.txt
using.txt
working-with.txt
writing-rules.txt