curl / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Andreas Falkenhahn via curl-library <curl-library_at_cool.haxx.se>
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                          mailto:andreas_at_falkenhahn.com
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-03-17