[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Static libraries - PIC or PIE?



Hi Bálint,

there is some confusion regarding how static libraries should be 
compiled now.

Your bugs (e.g. #837350) say "Please build libfoo.a with -fPIC".

Why do these say -fPIC and not -fPIE?

My current understanding is that a binNMU would recompile the the static 
library with PIE (not PIC), and that this is sufficient.

Thanks
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


Reply to: