[Issue 987] New: Add DMD compiler switch to prevent automatic linking to phobos.lib/libphobos.a

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 19 19:38:38 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=987

           Summary: Add DMD compiler switch to prevent automatic linking to
                    phobos.lib/libphobos.a
           Product: D
           Version: 1.006
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thecybershadow at gmail.com


Currently, the compiler (dmd.exe) forces to link against the standard library
with a fixed name. This greatly stagnates the use of alternating standard
libraries, like Tango, which have to resort to replacing the standard
"phobos.lib" (or "libphobos.a") file - which makes it difficult to work with
both Phobos and Tango projects at the same time.

Personally, I consider adding a switch which allows to specify an alternate
standard library to link to of very high importance. The current set-up
prevents complex build systems, like DSSS, to allow specification of a
project's used standard library - and thus facilitate building software and
dependencies independently of the currently-configured library. (Currently,
your D compiler can either be in Phobos mode or Tango mode, and you have to
manually switch between them) - that is, without using OptLink directly, which
is very problematic in itself (the interface between DMD and OptLink is
ill-defined - library deps change, etc, etc.).


-- 



More information about the Digitalmars-d-bugs mailing list