[m-dev.] Problem with loading object code

Tyson Dowd trd at cs.mu.OZ.AU
Wed Jan 10 14:48:01 AEDT 2001


On 09-Jan-2001, Tyson Richard DOWD <trd at cs.mu.OZ.AU> wrote:
> 
> If you look at the Mmakefile int he dynamic_linking library you will see
> 
> # Use shared libraries, since they're needed for dynamic linking
> MGNUCFLAGS = --pic-reg
> MLFLAGS = --shared
> 
> # Link in the `-ldl' library (this may not be needed on some systems)
> MLLIBS = -ldl
> 
> You need to add these lines to the Mmakefile in the server directory.
> But make sure you don't shadow the definitions of other Mmake variables,
> these flags need to be set in addition to other flags that are already
> set.
> 
> I didn't think this would be necessary for dynamic linking in the
> hlc.par.gc grade, but clearly it is.
> 
> Using this I have a version of the webserver that runs hello in
> libhello.so every time you request a file from it.

Just for closure on this issue -- using dynamic linking it all works
fine.

-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list