1) Have a trivial D file named deneme.d:
// deneme.d
void foo() {
}
2) Ensure 'output' exists as a directory:
mkdir -p output
3) Compile a shared library with the -od switch:
dmd -od=output -shared -of=deneme.so deneme.d
Desired behavior: Both the .o and the "library" should be under the 'output' directory per https://dlang.org/dmd-linux.html.
Observed behavior: .o is under 'output' but .so is in the current directory.
Comment #1 by robert.schadek — 2024-12-13T19:12:28Z