[Issue 6605] New: Add switch to enable setting library search paths via command line
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 5 08:42:10 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6605
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
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 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]
version=7.51 Build 020
[Environment]
DMDPATH=D:\DMD\dmd2\windows\bin
LIB="%DMDPATH%\..\lib";\dm\lib;%cd%\..\..\
DFLAGS="-I%DMDPATH%\..\..\src\phobos" "-I%DMDPATH%\..\..\src\druntime\import"
LINKCMD=%DMDPATH%\link.exe
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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list