September 18, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3328

           Summary: DMD strips package names from objects (ignores -op)
                    with -lib
           Product: D
           Version: 1.047
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: h3r3tic@mat.uni.torun.pl


--- Comment #0 from Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl> 2009-09-17 19:03:55 PDT ---
DMD strips package names / paths when generating object file names for -lib. Then the only way to extract objects from such a lib is running the librarian multiple times, which is sometimes too slow.

I've attached an archive containing an example of this issue. There are two modules whose fully qualified names differ, but the last parts of their names are the same. Compiling them with -c -lib -op and running the librarian reveals that DMD produces two objects with the same name. Running lib -x the first time extracts only the first one. Removing the object via lib -d and running lib -x again extracts the second. I've included a .bat file which demonstrates this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 18, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3328



--- Comment #1 from Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl> 2009-09-17 19:05:02 PDT ---
Created an attachment (id=453)
example

Attachment failed while submitting the issue.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------