[Issue 21360] New: dmd's -od command line switch is not obeyed for shared libraries
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 3 19:11:14 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21360
Issue ID: 21360
Summary: dmd's -od command line switch is not obeyed for shared
libraries
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: acehreli at yahoo.com
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.
--
More information about the Digitalmars-d-bugs
mailing list