[m-rev.] for review: fix extras/trailed_update test failure

Simon Taylor stayl at cs.mu.OZ.AU
Fri Nov 15 15:23:29 AEDT 2002


On 15-Nov-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 15-Nov-2002, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> > 
> > extras/trailed_update/samples/Mmakefile:
> > 	Don't pass `--static' to ml.  As far as I can tell it's
> > 	not needed, and it causes problems on taifun because
> > 	`-ldl' doesn't work for statically linked applications.
 
> Also, I think the samples needs `--static' to avoid problems on x86 due
> to the samples/* files being compiled with the default --no-pic-reg,
> but being linked against the shared library in .. which was compiled
> with --pic-reg.  Another alternative would be to build the samples
> with --pic-reg and `--mercury-libs shared', but that would run into
> problems on systems where we don't support shared libraries.

As far as I can tell, on Solaris/x86 by default we link with the static
Mercury standard and runtime libraries but with shared versions of other
libraries, which means that Mercury libraries other than the standard
library won't work with the default options.  On other x86 systems we
default to static linking for everything.  From the log message for the
change which added support for Solaris/x86 to ml, I don't think this was
intentional.  I'll change the default to static linking for everything
on Solaris/X86.

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