/opt/ghc/8.0.1/lib/ghc-8.0.1/settings
need to be updated to have the following values set
("C compiler flags", "-fno-PIE -fno-stack-protector"),
("C compiler link flags", "-no-pie"),
("ld flags", "-no-pie"),
The precise location of these files may differ on your machine.
Alan