Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Enable -fPIC for some packages #1690
@lrusak none. on (at least) x86_64 architecture, code that is compiled into static library is required to be position-independent if it will be used in a shared library.
so, all packages that are built with --enable-static --disable-shared (static only) should have --with-pic (or -fPIC in C/CXXFLAGS).
EDIT: -fPIC in global *FLAGS is not a good idea, you may experience build failures later if you do so ;)