"-defaultlib=libphobos2"

Abe via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 31 18:20:01 PDT 2014


> You can do it on Linux with dmd right now (use dmd 
> -defaultlib=libphobos2.so when building), but I don't know 
> about the Mac, and not sure about Windows either.

Well, it doesn`t look feasible with the current DMD for Mac OS X:

   > cd /opt/Digital_Mars_D_2.066.0
   > find . -iname '*dylib'
[nothing found]
   > find . -iname '*dylib*'  #  please note the extra '*' at the 
end
   ./src/druntime/src/rt/dylib_fixes.c


Reading "./src/druntime/src/rt/dylib_fixes.c" seems to indicate 
that DMD has at least _some_ support for Mac OS X dynamic 
libraries, but IDK how much and under which circumstances.


If anybody with a Windows installation of DMD would care to chime 
in, I`d be interested to read what that side of the triangle 
looks like vis-a-vis the linking and size-of-executable 
issue/issues.

My thanks again to Adam.

— Abe


More information about the Digitalmars-d mailing list