[OE-core] Default rpaths in BUILD_LDFLAGS

Martin Kelly mkelly at xevo.com
Thu Mar 9 00:01:58 UTC 2017


On 03/08/2017 04:02 PM, Khem Raj wrote:
> On 17-03-08 15:44:52, Martin Kelly wrote:
>> On 03/08/2017 02:23 PM, Khem Raj wrote:
>>> On 17-03-08 13:56:12, Martin Kelly wrote:
>>>> On 03/08/2017 01:46 PM, Khem Raj wrote:
>>>>
>>>> I agree we should not need them. Of course I can run a sed line to remove
>>>> the rpaths from LLVM_LDFLAGS from tools/llvm-config/BuildVariables.inc (and
>>>> this works just fine). However, I think there's a deeper issue here: All the
>>>> build-time flags that llvm-config spits out (--cppflags, --cflags,
>>>> --cxxflags) probably need to be replaced with target versions of those
>>>> variables.
>>>
>>> Its fine to sed it out, we are trying to use llvm-confing in a cross env
>>> and this seems to be less treaded path for it, it assumes you would use
>>> it for building packages natively generally.
>>>
>>>>
>>>> Do you agree with replacing all of those, or do you think we should replace
>>>> only the rpaths?
>>>
>>> yes please
>>>
>>
>> Sorry, just to clarify, do you mean "yes, replace all of them", or "yes,
>> replace only the rpaths" ? :).
>
> Infact we should not use any part of BUILD_CFLAGS in determining target CFLAGS
> intead may be you can replace it with content of TARGET_CFLAGS
>

Thanks, agreed; I will replace all the relevant build paths with TARGET 
versions of them.



More information about the Openembedded-core mailing list