static linking
    Martin Nowak via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sat Jul 25 22:22:12 PDT 2015
    
    
  
On Saturday, 25 July 2015 at 18:02:48 UTC, Laeeth Isharc wrote:
> I am trying to compile a D binary to run on AWS lambda.  If I 
> cannot link statically, which files should I include in the zip 
> upload - libphobos2.so, libdruntime-linux64so.o ?
I think dicebot who maitains the arch linux package change dmd to 
dynamically link with phobos by default (we don't yet do that on 
any other platform).
You should be able to link statically using -L-l:libphobos2.a or 
-defaultlib=libphobos2.a.
    
    
More information about the Digitalmars-d-learn
mailing list