http://d.puremagic.com/issues/show_bug.cgi?id=2776
------- Comment #1 from ben...@tionex.de 2009-04-01 08:23 ------- In DMD sources, the addition to the linker of the pragma(lib,..) happens in attrib.c: PragmaDeclaration::toObjFile which like the name implies while object file generation. This is not happening for headers. So I think the solution should be to move this to the semantic() method. --