[Buildroot] [PATCH v4] pkg-infra: add <pkg>_CONFIG_FIXUP to fix *-config files
stefan.froberg at petroprogram.com
Tue Feb 5 10:28:28 UTC 2013
5.2.2013 0:51, Peter Korsgaard kirjoitti:
>>>>>> "Stefan" == Stefan Fröberg <stefan.froberg at petroprogram.com> writes:
> Stefan> This patch will add <pkg>_CONFIG_FIXUP variable to buildroot infra.
> Stefan> It's purpose is to inform buildroot that the package in question
> Stefan> contains some $(STAGING_DIR)/usr/bin/*-config files and that we
> Stefan> want to automatically fix prefixes of such files.
> Stefan> It is often the case that many packages call these
> Stefan> files during their configuration step to determine 3rd party
> Stefan> library package locations and any flags needed to link against them.
> Stefan> For example:
> Stefan> Some package might try to check the existense and linking flags
> Stefan> of NSPR package by calling $(STAGING_DIR)/usr/bin/nspr-config --prefix.
> Stefan> Without this fix. NSPR would return /usr/ as it's prefix which is
> Stefan> wrong when cross-compiling.
> Stefan> Correct would be $(STAGING_DIR)/usr.
> Stefan> All packages that have <pkg>_INSTALL_STAGING = YES defined and
> Stefan> also install some config file(s) into $(STAGING_DIR)/usr/bin must
> Stefan> hereafter also define <pkg>_CONFIG_FIXUP with the correspondig
> Stefan> filename(s).
> Committed, thanks.
More information about the buildroot