Summary: Add switch to enable setting library search paths via
                    command line
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Optlink

--- Comment #0 from Andrej Mitrovic <> 2011-09-05 
08:41:59 PDT ---
Non-Windows users have the benefit of using a linker that has the ability to
add search paths via command line, e.g.:

dmd main.d -I../../src -L-lmylib -L-L../../

"mylib.a" will be search for in the relative directory ../../

We don't have this feature with Optlink. Our only option seems to be to locally
create a "sc.ini" file, and then have something like this in it:

version=7.51 Build 020

DFLAGS="-I%DMDPATH%\..\..\src\phobos" "-I%DMDPATH%\..\..\src\druntime\import"

Note how I had to hardcode DMD's path there.

It would be really beneficial if we had this option in optlink, otherwise we
have to rely on external build tools to expand paths to any library files.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to