[m-rev.] diff: fix `mmc --make' link object order

Simon Taylor stayl at cs.mu.OZ.AU
Wed May 22 17:58:35 AEST 2002


On 22-May-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 22-May-2002, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> > 
> > compiler/make.program_target.m:
> > 	MLOBJS or `--link-objects' may contain `.a' files, which 
> > 	should come last on the linker command line.
> 
> You know, it seems to me that putting `.a' files in MLOBJS
> or passing them via `--link-objects' is an abuse of that feature.
> 
> Surely `.a' files should be mentioned in MLLIBS rather than MLOBJS
> and passed via `--library' rather than `--link-objects', shouldn't they?

MLLIBS is documented to be a list of `-l' options, so `.a'
files shouldn't be passed there.  MLLIBS should be converted
into a list of `--library' options, but given that in the
past the usage hasn't matched the documentation I was
reluctant to do that.

`.a' files can't be passed using `--library' because
`mmc --library library.a ...' will result in an ml command
line like `ml -llibrary.a ...'.  Are you suggesting that
the arguments of the `--library' options should be examined
to work out whether they are `.a' files?

Simon.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list