Re: Porter roll call for Debian Stretch
Kurt Roeckx <[email protected]>
| Newsgroups | gmane.linux.debian.ports.mips |
|---|---|
| Message-ID | <20160817211405.ggcqxkk6yftpdz4g__49779.3315364563$1471468519$gmane$org@roeckx.be> |
On Wed, Aug 17, 2016 at 10:05:06PM +0200, [email protected] wrote: > * If we were to enable -fPIE/-pie by default in GCC-6, should that change > also apply to this port? [0] If -fPIE is the default will -fPIC override it? It will also default to tell the linker to use -pie, but then don't do it when you want to create a shared library? >From what I understand, depending on what the .o file is going to be used for you want different things: - shared library: -fPIC - executable: -fPIC or -fPIE both work, but prefer -fPIE - static library: Same as executables For static libraries we now have a policy to not use -fPIC, should that then get replaced by using -fPIE? Kurt