Using -split-objs

Simon Marlow simonmar at
Mon Mar 15 13:09:56 EST 2004

> The ghc users guide contains this helpful advice about split-objs..
>  "don't use it unless you know what you're doing!"
> OK, I admit I don't know what I'm doing. But despite this handicap
> I would like to use split-objs to build a library. I've already
> discovered it doesn't work with --make, so I guess I have to use
> a makefile.
> Are there any other gotchas waiting for me?
> Anything else I need to know?

You'll probably need special Makefile rules to handle it too.  I think
you need to make the subdirectory for the objects (M_split/) beforehand,
and touch the object file M.o afterward (so that make dependencies still


More information about the Glasgow-haskell-users mailing list