Why does gcc not implicitly supply the -fPIC flag when compiling static libraries on x86_64
See question 3544035. Also discussed here and there. It depends on what use you will have for your static library. If you only want to link it into programs, it doesn’t need PIC code (libtool calls that a convenience library, because you could pretty much do without it, it simply helps get your compilation process … Read more