I still think specifying '-fPIC' on the compile command line
and '-fpic' on the link line should have the same effect
as '-fno-PIE' (compile) and '-no-pie' (link).
Moreover, while I see you've added documentation for
'-no-pie' to gcc-7.info, there is no documentation there
for '-fno-PIE' .
It is
As detailed in https://wiki.ubuntu.com/ToolChain/CompilerFlags gcc in
Ubuntu defaults to compiling with -fPIE in CFLAGS and -Wl,-pie for -pie
in the linker flags. As also detailed on that page, you can disable this
by compiling with:
CFLAGS="-fno-PIE -Wl,-no-pie"
** Changed in: gcc-7 (Ubuntu)
Fixed g++.specs that does not always add '-pie' to the link command
line.
But now I have to compile everything with '--specs=$my_spec_file' -
why should I have to?
** Attachment added: "modified 'g++ --dumpspecs' output to NOT add '-pie'."
https://bugs.launchpad.net/ubuntu/+source/gcc-7/+bug/