www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21360] New: dmd's -od command line switch is not obeyed for


          Issue ID: 21360
           Summary: dmd's -od command line switch is not obeyed for shared
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: acehreli 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.

Nov 03 2020