[m-rev.] diff: fix mmc --make and shared libraries on darwin

Ian MacLarty maclarty at cs.mu.OZ.AU
Wed Feb 8 07:12:28 AEDT 2006


On 7 Feb 2006, at 18:44, Julien Fischer wrote:

>
> Estimated hours taken: 3.5
> Branches: main
>
> Fix a bug with mmc --make and shared libraries on Darwin.  The problem 
> was
> that the install_name for the library was being incorrectly set was
>

delete "was".

> compiler/modules.m:
> 	Set the value of the install-name path correctly.  If the user doesn't
> 	specify a value then generate one based on the current value of
> 	INSTALL_PREFIX.
>
> compiler/options.m:
> 	Delete the bogus default value for the shlib-linker-install-name-path
> 	option.
>

Why is $(INSTALL_MERC_LIB_DIR) a bogus default value?  Is that because 
it gets set by mmake and so is blank when mmc is called outside of 
mmake?  Does this mean that when you build shared libraries with mmc 
--make you must either set INSTALL_PREFIX in the environment or pass 
--shlib-linker-install-name-path?  Or is that value of INSTALL_PREFIX 
coming from the runtime (i.e runtime/mercury_conf*.h)?

Also if I build a library, but don't install it, can I still link with 
the library?

Also I assume everything still works with mmake :-)

Ian.

--------------------------------------------------------------------------
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