hadrian: Use --export-dynamic when linking iserv

As noticed in #17962, the make build system currently does this (see
3ce0e0ba) but the change was never ported to Hadrian.

(cherry picked from commit eba58110)
18 jobs for !3373 with wip/backports-8.8 in 24 minutes and 14 seconds (queued for 5 seconds)
detached
Status Job ID Name Coverage
  Lint
failed #348057
lint allowed to fail
ghc-linters

00:01:00

passed #348058
lint
lint-submods-mr

00:00:57

 
  Build
failed #348061
x86_64-linux allowed to fail
release-x86_64-linux-deb9-dwarf

00:20:20

failed #348059
x86_64-linux allowed to fail
validate-x86_64-linux-deb8-hadrian

00:17:43

failed #348060
x86_64-linux
validate-x86_64-linux-deb9-debug

00:13:45

 
  Full Build
skipped #348063
aarch64-linux allowed to fail
validate-aarch64-linux-deb9
skipped #348064
x86_64-linux
validate-i386-linux-deb9
skipped #348062
x86_64-darwin
validate-x86_64-darwin
skipped #348065
x86_64-linux
validate-x86_64-linux-deb9
skipped #348067
x86_64-linux allowed to fail
validate-x86_64-linux-deb9-integer-simple
skipped #348066
x86_64-linux allowed to fail
validate-x86_64-linux-deb9-llvm
skipped #348068
x86_64-linux allowed to fail
validate-x86_64-linux-deb9-unreg
skipped #348069
x86_64-linux
validate-x86_64-linux-fedora27
skipped #348071
x86_64-windows allowed to fail
validate-x86_64-windows
skipped #348070
x86_64-windows allowed to fail
validate-x86_64-windows-hadrian
 
  Cleanup
passed #348073
x86_64-darwin
cleanup-darwin

00:00:07

passed #348072
x86_64-windows
cleanup-windows

00:00:57

 
  Hackage
skipped #348074
x86_64-linux allowed to fail manual
hackage
 
Name Stage Failure
failed
release-x86_64-linux-deb9-dwarf Build
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
WARNING: ghc-*.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
validate-x86_64-linux-deb9-debug Build
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
Makefile:123: recipe for target 'all' failed
Running after script...
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
validate-x86_64-linux-deb8-hadrian Build



Running after_script
Uploading artifacts for failed job
Uploading artifacts...
WARNING: ghc.tar.xz: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
ghc-linters Lint
commit 2c9d37ba26c390bca2cb2f7835571b7cc4fa17e8 has whitespace linter issues:

*ERROR* compiler/typecheck/TcRnTypes.hs:1023: introduces trailing whitespace
> "set 'RunSplice' when renaming or typechecking the splice, where 'Splice', "

Validation FAILED for 2c9d37ba26c390bca2cb2f7835571b7cc4fa17e8
=====================================================================================
Validation FAILED because at least one commit had linter errors!
ERROR: Job failed: exit code 1