> On Mar 19, 2021, at 4:06 PM, Eneas U de Queiroz <cotequei...@gmail.com> wrote:
>
> On Fri, Mar 19, 2021 at 5:08 PM Philip Prindeville
> <philipp_s...@redfish-solutions.com> wrote:
>>
>>
>> Maybe I'm missing something, but why not just fix rules.mk:
>>
>>
>> ifneq (,$(findstring $(ARCH) , aarch64 aarch64_be powerpc ))
>> FPIC:=-fPIC
>> else
>> FPIC:=-fpic
>> endif
>>
>> HOST_FPIC:=-fPIC
>>
>>
>> To have the FPIC and HOST_FPIC definitions include -DPIC?
>
> I think it would be the proper way to handle this. I was initially
> fearful of changing too much and breaking things, but I think it
> should be expected behaviour. What else would you use a 'PIC'
> definition for? I will resend a patch changing rules.mk instead.
Just saw this... Turns out that this would break a couple of packages (both in
openwrt and in packages), so I've included those as well.
-Philip
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel