gdmd [a lot of sources] -lib -odgenerated -oflibscid.a... which if run, produces the "generated" subdir but places the output file libscid.a in the current directory. This happens consistently, even if the "generated" dir already exists.
https://bitbucket.org/goshawk/gdc/issue/283/gdmd-libraries-not-put-into-od-dir