Bug 21360 – dmd's -od command line switch is not obeyed for shared libraries

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-11-03T19:11:14Z
Last change time
2024-12-13T19:12:28Z
Assigned to
No Owner
Creator
Ali Cehreli
Moved to GitHub: dmd#19815 →

Comments

Comment #0 by acehreli — 2020-11-03T19:11:14Z
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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19815 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB