[oe] [meta-oe][PATCH 5/8] luajit: Dont use BUILD_LDFLAGS when compiling host binaries

Andre McCurdy armccurdy at gmail.com
Mon May 21 22:33:57 UTC 2018


On Sun, May 20, 2018 at 12:02 PM, Carlos Alberto Lopez Perez
<clopez at igalia.com> wrote:
> On 18/05/18 20:46, Andre McCurdy wrote:
>> On Fri, May 18, 2018 at 6:27 AM, Carlos Alberto Lopez Perez
>> <clopez at igalia.com> wrote:
>>> On 18/05/18 06:44, Khem Raj wrote:
>>>>> I suggest adding something like this:
>>>>>
>>>>> EXTRA_OEMAKE_remove_class-target = "'HOST_LDFLAGS=${BUILD_LDFLAGS}'"
>>
>> This idea looks right, but be aware that ${BUILD_LDFLAGS} will be
>> expanded before being processed by _remove. Therefore any individual
>> string within ${BUILD_LDFLAGS} will be removed from the final value of
>> EXTRA_OEMAKE, even if it occurs somewhere other than in the value of
>> HOST_LDFLAGS. For example:
>>
>>   BUILD_CFLAGS = "one two three"
>>   BUILD_LDFLAGS = "one two three"
>>
>>   FOO = " \
>>     'HOST_CFLAGS=${BUILD_CFLAGS}' \
>>     'HOST_LDFLAGS=${BUILD_LDFLAGS}' \
>>   "
>>
>>   FOO_remove_class-target = "'HOST_LDFLAGS=${BUILD_LDFLAGS}'"
>>
>>   $ bitbake recipe -e | grep ^FOO=
>>
>>   FOO="'HOST_CFLAGS=one three'"
>>
>> Notice how "two" has been removed from the final value of HOST_CFLAGS
>> set within FOO.
>
> Interesting.. didn't knew this.
>
> Is there any way to tell _remove to only remove a string if it matches
> as a whole instead of removing the individual words separated by spaces?
> I tried escaping the quotes but didn't worked :?

I don't think there's a way to do that.



More information about the Openembedded-devel mailing list