https://issues.dlang.org/show_bug.cgi?id=18066
--- Comment #4 from anonymous4 <[email protected]> --- Try to compile main_aux separately? --- dmd -of=./build//app.o -c -g fun1.d fun2.d dmd -of=./build//main.o -c -g main_aux.d libtool -static ./build//app.o ./build//main.o -o ./build//libapp.a dmd -of=./build//app -g -L./build//libapp.a main_aux.d --- Usually linker can't omit symbols selectively from one object file, so you should compile to separate object files, what dmd -lib does - that's why it works. btw what is // ? --
