[Olsr-dev] compile error on native ARMv7 / Ubuntu15.04

Henning Rogge (spam-protected)
Mon Nov 9 11:13:59 CET 2015


On Mon, Nov 9, 2015 at 10:48 AM, Bastian Bittorf <(spam-protected)> wrote:
> * Henning Rogge <(spam-protected)> [09.11.2015 10:40]:
>> You can use the EXTRA_CPPFLAGS makefile variable to add the compile switch.
>
> ok, this works:
> make build_all EXTRA_CFLAGS=-fPIC

ok

>> There is no clean way for the host crosscompiler to know what
>> parameters your target platform needs.
>
> we can check *if* we do cross-compiling and if
> not, set -fPIC - AFAIK this adds more code,
> but when compiling native, we "have enough power".

Is there a reason why EVERY crosscompilation should nee "-fPIC" ? Or
the other way around?

I think this is really target-platform specific.

Henning



More information about the Olsr-dev mailing list