curl / Mailing Lists / curl-library / Single Mail


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

From: Andreas Falkenhahn via curl-library <>
Date: Sun, 17 Mar 2019 17:04:58 +0100

So when I say

    $ ./configure --disable-shared
    $ make V=1

-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:

    $ ./configure --disable-shared --with-pic
    $ make V=1

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?

I need position-independent code because I want to statically link my shared object against libcurl.a.

Best regards,
 Andreas Falkenhahn                
Received on 2019-03-17