https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233707
--- Comment #14 from Tijl Coosemans <t...@freebsd.org> --- (In reply to Shawn Webb from comment #13) -fPIE == -fPIC + some optimisations that only apply to executables. Executables can access their own global variables and functions directly. Libraries cannot (unless the variable is declared with protected visibility) because a symbol with the same name can be defined in the executable or another library and the symbol can be resolved to that one. So you can compile executables with -fPIC but you should not compile shared libraries with -fPIE. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-toolchain@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"