[OE-core] [PATCH] gmp: remove referencing paths from the build host
Junling Zheng
zhengjunling at huawei.com
Tue Apr 21 01:06:24 UTC 2015
On 2015/4/20 23:15, Richard Purdie wrote:
> On Mon, 2015-04-20 at 09:30 +0800, Junling Zheng wrote:
>> On 2015/4/18 2:24, Andre McCurdy wrote:
>>> On Fri, Apr 17, 2015 at 1:50 AM, Junling Zheng <zhengjunling at huawei.com> wrote:
>>>> Currently ${D}${includedir}/gmp.h references the path of build host
>>>> incorrectly, remove it.
>>>>
>>>> Signed-off-by: Junling Zheng <zhengjunling at huawei.com>
>>>> ---
>>>> meta/recipes-support/gmp/gmp.inc | 4 ++++
>>>> 1 file changed, 4 insertions(+)
>>>>
>>>> diff --git a/meta/recipes-support/gmp/gmp.inc b/meta/recipes-support/gmp/gmp.inc
>>>> index 558ee06..a80b356 100644
>>>> --- a/meta/recipes-support/gmp/gmp.inc
>>>> +++ b/meta/recipes-support/gmp/gmp.inc
>>>> @@ -26,4 +26,8 @@ EXTRA_OECONF += " --enable-cxx=detect"
>>>> PACKAGES =+ "libgmpxx"
>>>> FILES_libgmpxx = "${libdir}/libgmpxx${SOLIBS}"
>>>>
>>>> +do_install_append_class-target() {
>>>> + sed -i "s+--sysroot=${STAGING_DIR_HOST}++g" ${D}${includedir}/gmp.h
>>>> +}
>>>
>>> It's possible that STAGING_DIR_HOST could contain '+' characters, so
>>> '|' would be a safer sed separator to use here.
>>>
>>
>> Ok, thanks for your suggestion:)
>
> I fixed this one whilst merging it (faster than dropping and re-adding).
>
> Cheers,
>
> Richard
>
>
>
Thanks:)
Cheers,
Junling
More information about the Openembedded-core
mailing list