https://issues.dlang.org/show_bug.cgi?id=22034
--- Comment #3 from Heromyth <[email protected]> --- (In reply to mipri from comment #1) > same compiler, non-betterC cc: > > cc bcascii.o -o /tmp/dmd_run2D9Hdd -m64 -Xlinker --export-dynamic > -L/home/mipri/dmd2/linux/bin64/../lib64 -Xlinker -Bstatic -lphobos2 -Xlinker > -Bdynamic -lpthread -lm -lrt -ldl > > -betterC cc (with same error): > > cc bcascii.o -o /tmp/dmd_run3XoXBx -m64 -Xlinker --export-dynamic > -L/home/mipri/dmd2/linux/bin64/../lib64 -lpthread -lm -lrt -ldl > > -betterC -L-lphobos2 (build successful) > > cc bcascii.o -o /tmp/dmd_runbkX3TQ -m64 -Xlinker --export-dynamic -lphobos2 > -L/home/mipri/dmd2/linux/bin64/../lib64 -lpthread -lm -lrt -ldl > > This behavior's also seen with a freshly built devel dmd. You are right. The phobos2 is not linked by default for -betterc. --
