[dmd-internals] Shouldn't there be a dmd switch to specify search paths for libraries?

Leandro Lucarella luca at llucax.com.ar
Sat Aug 14 15:25:52 PDT 2010


Walter Bright, el 14 de agosto a las 01:45 me escribiste:
> Leandro Lucarella wrote:
> >Walter Bright, el 13 de agosto a las 18:46 me escribiste:
> >>Leandro Lucarella wrote:
> >>>What I do think is important is an option to ignore pragma(lib)
> >>>entirely, because even when is not very common, users might want to link
> >>>against an specific custom library name. For example in Debian sometimes
> >>>there are packages for the same library but configured in different
> >>>ways, like libcurl and libcurl-gnutls.
> >>>
> >>>I opened a bug report:
> >>>http://d.puremagic.com/issues/show_bug.cgi?id=4642
> >>>
> >>http://www.digitalmars.com/ctg/ctgLinkSwitches.html#defaultlibrarysearch
> >
> >As stated in the bug report, you either don't understand me, or I don't
> >understand you. I'm not talking about library search, I'm talking about
> >automatic linking against libraries.
> 
> The switch causes the linker to ignore library names embedded in the
> object file. I believe this is exactly what you asked for.

Again, I don't use Windows, I don't know if this is a non-problem in
Windows, but *it is* in Linux, where as you say no library names are
embedded in the object file and instead DMD just call the linker with
-lnameofthelib, and you can't avoid that (AFAIK, please correct me if
I'm wrong).

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
He cometido pecados, he hecho el mal, he sido víctima de la envidia, el
egoísmo, la ambición, la mentira y la frivolidad, pero siempre he sido
un padre argentino que quiere que su hijo triunfe en la vida.
	-- Ricardo Vaporeso


More information about the dmd-internals mailing list