[GHC] #9983: configure script invokes ghc with LDFLAGS during cross-builds