d: Allow static library to be passed with -L to dmd/ldc
@@ -379,7 +379,11 @@ class DCompiler(Compiler):
dcargs.append('-L=' + arg)
continue
-
+ elif not arg.startswith('-') and arg.endswith(('.a', '.lib')):
+ # ensure static libraries are passed through to the linker
+ dcargs.append('-L=' + arg)
+ continue
+ else:
dcargs.append(arg)
return dcargs
