gecode icon indicating copy to clipboard operation
gecode copied to clipboard

Builds with -fPIC when --enable-static is used

Open yurivict opened this issue 4 years ago • 1 comments

-fPIC should only be used for shared libraries. -fPIC reduces code performance therefore defearing the purpose of static libraries.

Version 6.3.0 OS: FreeBSD 13

yurivict avatar Jun 06 '21 00:06 yurivict

-fPIC is also correct for static libraries, and required when you want to build a position-independent executable.

And when you build shared libraries with LTO (link-time-optimization), you typically end up with faster code due to cross-translation-unit optimization.

StefanBruens avatar Apr 27 '22 21:04 StefanBruens