<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Regular Modula-3 app stuff should build statically already, where it makes sense. build_standalone() achieves this. On some systems static libraries for certain system libraries are not available and cannot be assumed. We always build static Modula-3 libraries, so the current setup will link those statically even if other libraries are not available. For example, cm3 on I386_DARWIN gives: <div><br></div><div><div>hosking$ otool -L /usr/local/cm3/bin/cm3</div><div>/usr/local/cm3/bin/cm3:</div><div> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)</div><div> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)</div><div><br></div><div>Notice that all the M3 libraries are static, but libgcc and friends are dynamic.</div><div><br></div><div>So, I don't know what you are attempting to do. Did you try --disable-shared for m3cc configuration?</div><div><br></div><div><div><html>On Apr 19, 2008, at 11:10 AM, Jay wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; 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: 0; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; "><div style="text-align: left; ">(ok, actually I meant maybe for cm3cg but ok either way, there'd only be one use of "/usr/local/cm3/bin/libgmp.so" so might as well be static)<br></div><br><br><br><br><blockquote><hr id="EC_stopSpelling">From:<span class="Apple-converted-space"> </span><a href="mailto:jayk123@hotmail.com">jayk123@hotmail.com</a><br>To:<span class="Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br>Date: Sat, 19 Apr 2008 15:02:44 +0000<br>CC:<span class="Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>Subject: Re: [M3devel] a hope for dynamic linking!<br><br><div style="text-align: left; ">I mean for the "regular" Modula-3 "app" stuff, not cm3cg.<br><br>It looks like it is already static, good.<br><br>1)<span class="Apple-converted-space"> </span><a href="http://gcc.gnu.org/ml/gcc/2006-10/msg00141.html">http://gcc.gnu.org/ml/gcc/2006-10/msg00141.html</a><br><br>2) The current code:<br><br>m3-sys/m3cc/gcc/Makefile.in:<br><br>configure-gmp:<span class="Apple-converted-space"> </span><br>...<br> echo Configuring in $(HOST_SUBDIR)/gmp; \<br>...<br> $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \<br> --target=none-${host_vendor}-${host_os} $${srcdiroption} --disable-shared \<br> || exit 1<br>@endif gmp<br><br><br>configure-mpfr:<span class="Apple-converted-space"> </span><br>...<br> echo Configuring in $(HOST_SUBDIR)/mpfr; \<br>...<br> $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \<br> --target=none-${host_vendor}-${host_os} $${srcdiroption} --disable-shared --with-gmp-build=$$r/$(HOST_SUBDIR)/gmp \<br> || exit 1<br>@endif mpfr<br><br><br>Let me test it and then I'll remove the Quake code related to this.<br><br><br> - Jay<br></div><br><br><blockquote><hr id="EC_EC_stopSpelling">CC:<span class="Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>From:<span class="Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br>To:<span class="Apple-converted-space"> </span><a href="mailto:jayk123@hotmail.com">jayk123@hotmail.com</a><br>Subject: Re: [M3devel] a hope for dynamic linking!<br>Date: Sat, 19 Apr 2008 10:50:04 -0400<br><br><div><span class="EC_EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><div><span class="EC_EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><span class="EC_EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><span class="EC_EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><span class="EC_EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><span class="EC_EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><span class="EC_EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><span class="EC_EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><span class="EC_EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><div>Hold on! I am strongly in favor of static linking for cm3cg/m3cgc1 so that it is a standalone executable. Should be easy enough with gcc configure.</div></span></span></span></span></span></span></span></span></div></span></div><br><div>On Apr 19, 2008, at 10:31 AM, Jay wrote:<br class="EC_EC_Apple-interchange-newline"><blockquote><span class="EC_EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><div class="EC_EC_hmmessage" style="font-size: 10pt; font-family: Tahoma; "><div style="text-align: left; "><a href="http://www.eyrie.org/%7Eeagle/notes/rpath.html" target="_blank">http://www.eyrie.org/~eagle/notes/rpath.html</a><br><a href="http://people.debian.org/%7Eche/personal/rpath-considered-harmful" target="_blank">http://people.debian.org/~che/personal/rpath-considered-harmful</a><br><br><br>but yet:<br><br><a href="http://www.scons.org/wiki/UsingOrigin" target="_blank">http://www.scons.org/wiki/UsingOrigin</a><br><br></div>So you can either colocate executables and .sos in the same directory or, like<br> /cm3/bin<span class="EC_EC_Apple-converted-space"> </span><br> /cm3/lib/m3core.so<span class="EC_EC_Apple-converted-space"> </span><br><br>and vary the install root.<br><br>We should be using this where available -- Linux, Solaris, Irix.<br>Too bad not supported elsewhere.<br>On Windows you can colocate; the .exe's directory is always searched.<br><br> - Jay<br></div></span></blockquote></div><br></blockquote></blockquote></div></span><br class="Apple-interchange-newline"></blockquote></div><br></div></div></body></html>