www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22707] New: Windows: LIB env variable for link.exe is


          Issue ID: 22707
           Summary: Windows: LIB env variable for link.exe is overwritten
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: kinke gmx.net

DMD seems to overwrite the LIB env var with the LIB value in the sc.ini config
file, instead of appending (or prepending) that value to the potentially
existing variable (like LDC).

So it's impossible to use LIB to point to a directory containing required libs
for linking, and one has to resort to `-L/LIBPATH:…` business.

The problem seems to be
existing DFLAGS are merged with the config file value in the line above, but
LIB is simply overwritten.

Jan 27 2022