
30 Jun
2003
30 Jun
'03
8:52 a.m.
If you pass a list of .o files---and only .o files (i.e. no .hs files)---to GHC, and --make is specified, nothing happens. Is it possible to change this behaviour so that GHC will link the .o files together into an executable?
Not possible at the moment, I'm afraid. GHC's intelligence about which packages to link comes from inspecting the interfaces for the compiled modules, not from the .o files themselves. This is why one-shot linking needs to have explicit -package flags on the command line. Is there some reason you can't use ghc --make in the normal way? Cheers, Simon