www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: thecybershadow 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.).


-- 
Feb 19 2007
next sibling parent Sean Kelly <sean f4.ca> writes:
For what it's worth, I do think it makes sense for the compiler to 
implicitly link a library expected to contain its runtime code.  In 
fact, Tango was even designed to support this configuration.  It isn't 
the default simply because it adds complexity but only benefits a small 
portion of the community.  The need for users to switch between 
configurations is a valid concern however, so I can't say I disagree 
with this request.  If nothing else, it would occasionally be useful to 
link a debug vs. a release version of the compiler runtime without 
replacing the library file itself.
Feb 19 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=987






From the spec, it's fixed in 1.021


-- 
Sep 12 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=987


davidl 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




-- 
Sep 12 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=987


davidl 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sean f4.ca





*** Bug 1445 has been marked as a duplicate of this bug. ***


-- 
Sep 12 2007