[M3devel] interesting comment in caltech-parser m3overrides

Jay K jay.krell at cornell.edu
Sun Apr 4 10:29:31 CEST 2010


/* 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/2773effc/attachment-0001.html>


More information about the M3devel mailing list