https://issues.dlang.org/show_bug.cgi?id=17058
Issue ID: 17058
Summary: dmd -shared -od=/tmp/d09/ incorrectly creates lib in
cwd
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
OSX (and maybe other OS)
dmd -shared -od=/tmp/d09/ test.d
creates ./test.dylib instead of /tmp/d09/test.dylib; and also /tmp/d09/test.o
same with s/dmd/ldmd2/
with s/-shared/-lib/, it correctly creates:
/tmp/d09/test.a
(and no .o)
This is clearly inconsistent.
One option would be to make:
dmd -shared -od=/tmp/d09/ test.d
create all produced stuff in /tmp/d09/
If that's unacceptable, make `dmd -shared -od=/tmp/d09/ test.d` an error,
saying: please provide `-of=`
--