From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?U3RlZmFuIEZyw7ZiZXJn?= Date: Tue, 05 Feb 2013 12:28:28 +0200 Subject: [Buildroot] [PATCH v4] pkg-infra: add _CONFIG_FIXUP to fix *-config files In-Reply-To: <87sj5b1ym1.fsf@dell.be.48ers.dk> References: <1359550000-10585-1-git-send-email-stefan.froberg@petroprogram.com> <87sj5b1ym1.fsf@dell.be.48ers.dk> Message-ID: <5110DECC.5000501@petroprogram.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 5.2.2013 0:51, Peter Korsgaard kirjoitti: >>>>>> "Stefan" == Stefan Fr?berg writes: > Stefan> This patch will add _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 _INSTALL_STAGING = YES defined and > Stefan> also install some config file(s) into $(STAGING_DIR)/usr/bin must > Stefan> hereafter also define _CONFIG_FIXUP with the correspondig > Stefan> filename(s). > > Committed, thanks. > Thanks Peter! Stefan