[dmd-internals] Making druntime a shared library on linux

Walter Bright walter at digitalmars.com
Mon Mar 25 16:48:41 PDT 2013


On 3/25/2013 3:19 PM, Jonathan M Davis wrote:
> On Monday, March 25, 2013 12:46:46 Walter Bright wrote:
>> I couldn't find a linker flag to prefer libdruntime.so over libdruntime.a,
>> or vice versa, so I named the shared library libdruntimeso.so. Ugh. If
>> there's a better way, please let me know.
> I believe that the .so is preferred over the .a so that you normally give the
> .a version explicitly if you want to link against it, but it looks like
> there's also a -Bstatic flag to tell it to link against the static version.
>
> http://stackoverflow.com/questions/6578484/telling-gcc-directly-to-link-a-library-statically

-Bstatic doesn't seem to be very well documented or implemented in general.

http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/VxWorks-Options.html#VxWorks-Options



More information about the dmd-internals mailing list