D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6209 - -L\implib and -H generation should follow -od flag
Summary: -L\implib and -H generation should follow -od flag
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 11:00 UTC by Andrej Mitrovic
Modified: 2012-01-21 15:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2011-06-24 11:00:56 UTC
Currently calling -H to generate header files and -L\implib to create import libraries via the linker creates .di and .lib files in the current directory, regardless if the -od switch is present.

This makes it difficult to make build scripts which must keep their current working directory intact in order to resolve imports, but where the output files need to be in some subdirectory.
Comment 1 Andrej Mitrovic 2012-01-21 15:30:30 UTC
-H follows -Hd"dir" for output, not -od. I didn't know this when I filed this bug.

As for -L\implib, optlink might have some switches for this but I'll have to look into it. Closing.