curl / Mailing Lists / curl-library / Single Mail


Re: -fPIC is set on x64 but not on ARM and PPC

From: Daniel Stenberg via curl-library <>
Date: Sun, 17 Mar 2019 18:05:01 +0100 (CET)

On Sun, 17 Mar 2019, Andreas Falkenhahn via curl-library wrote:

> -fPIC and -DPIC are used on x64 but not on ARM and PowerPC systems. To make
> curl use -fPIC/-DPIC on PPC and ARM as well, I need to do this instead:


> Is there any reason for this inconsistency between x64 and PPC/ARM? Why are
> -fPIC/-DPIC automatically enabled for x64 but not for PPC/ARM?

All that PIC option logic, present or not, is handled by libtool - so if
there's an inconsistency that is where it comes from. I personally have no
idea how it determines when those options should be used or not...

Received on 2019-03-17