[M3devel] interesting comment in caltech-parser m3overrides

Tony Hosking hosking at cs.purdue.edu
Sun Apr 4 15:01:35 CEST 2010


override was used before the existence of shared libs in CM3/PM3 so not surprising.


On 4 Apr 2010, at 04:29, Jay K wrote:

> /* when overriding, ld.so doesn't know where to find libraries */
> /* this is even more true if we want to move the binaries or */
> /* clean.. */
>  
> %if defined("pm3_version") 
> %       /* Polytechnique de Montreal Modula-3 */
> % option("shared_lib","")
> %else 
> % /* SRC Modula-3 */
> % m3_option ("-X2 at -static@")
> %end
> 
>  
> which is the same problem we discussed here a bunch.
>   To which there is no good solution, just various compromises.
>   For the next (not current) release though I think all .so and executables should build (not just ship) into a common place.
>   So $ORIGIN works, without having to ship.
>  
>  
> They also have this interesting technique:
>  
> /* these are the packages that are part of this distribution */
> override("prsparse",TOP)
> ...
>  
>  
> % override other libraries if they exist locally  (use not stale on each)
>  
> m3core = ROOT & SL & "m3-libs" & SL & "m3core"
> if not stale(m3core, m3core)
>   override("m3core", ROOT & SL & "m3-libs")
> end
> ...
>  
>  
> override should probably do the existance check if it doesn't already.
> Though the idea of building stuff to a common directory I believe obsoletes this entire override thing.
>  
>  
>  - Jay

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100404/551db4d7/attachment-0002.html>


More information about the M3devel mailing list