Linking a shared library against a static library: must the static library be compiled differently than if an application were linking it?
You do not have to use PIC code in shared objects (as you have discovered you can use the -mimpure-text option to allow that). That said, non-PIC code in shared objects are more heavyweight. With PIC code, the text pages in memory are just direct memory mappings of the text pages on disk. This means … Read more