<html><head><base href="x-msg://24/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">override was used before the existence of shared libs in CM3/PM3 so not surprising.<div><br>
<br><div><div>On 4 Apr 2010, at 04:29, Jay K wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">/* when overriding, ld.so doesn't know where to find libraries */<br>/* this is even more true if we want to move the binaries or */<br>/* clean.. */<br> <br>%if defined("pm3_version")<span class="Apple-converted-space"> </span><br>% /* Polytechnique de Montreal Modula-3 */<br>% option("shared_lib","")<br>%else<span class="Apple-converted-space"> </span><br>% /* SRC Modula-3 */<br>% m3_option ("<a href="mailto:-X2@-static">-X2@-static</a>@")<br>%end<br><br> <br>which is the same problem we discussed here a bunch.<br> To which there is no good solution, just various compromises.<br> For the next (not current) release though I think all .so and executables should build (not just ship) into a common place.<br> So $ORIGIN works, without having to ship.<br> <br> <br>They also have this interesting technique:<br> <br>/* these are the packages that are part of this distribution */<br>override("prsparse",TOP)<br>...<br> <br> <br>% override other libraries if they exist locally (use not stale on each)<br> <br>m3core = ROOT & SL & "m3-libs" & SL & "m3core"<br>if not stale(m3core, m3core)<br> override("m3core", ROOT & SL & "m3-libs")<br>end<br>...<br> <br> <br>override should probably do the existance check if it doesn't already.<br>Though the idea of building stuff to a common directory I believe obsoletes this entire override thing.<br> <br> <br> - Jay<br></div></span></blockquote></div><br></div></body></html>