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

Walter Bright walter at digitalmars.com
Sat Aug 14 01:45:29 PDT 2010



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.


More information about the dmd-internals mailing list