How can I fully include "libdruntime-ldc.a" and "libphobos2-ldc.a" in my .so lib ?

Basile B. b2.temp at gmx.com
Thu Apr 16 09:48:21 UTC 2020


My dub recipe includes this

   "dflags" : [
     "bin/libdruntime-ldc.a",
     "bin/libphobos2-ldc.a"
   ]

so that ideally I'll get everything in the library but this does 
not work. For example rt_init and rt_term are no visible in the 
exports

   $ nm -D libdexed-d.so | grep rt_init
   $

and the project that uses the library does not link anyway, 
unless I instruct LD to use libdruntime-ldc.so.


More information about the Digitalmars-d-learn mailing list