On Monday 2015-01-05 10:10, Marcus Meissner wrote:
This needs to be done during compilation (-fPIE) and during linking (-pie), which makes it harder to implement.
Just changing %optflags / RPM_OPT_FLAGS is insufficient as the linker also needs to be called specifically and this cannot be passed in via the configuration. Methods I am currently thinking about: - Change the compiler directly to build PIE binaries by default (change in gcc) Binaries that do not want it, would need to use -no-pie / -fno-PIE
Most software uses the frontend binary/binaries for both compilation and linking rather than the individual tools, so if the frontend were to see -pie/-PIE during -c, it should convert that to -fpie/-fPIE, and -pie/-pie when linking. With that, we could switch everything with %optflags/CFLAGS alone. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org