Fedora and library name

David Nadlinger via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Wed May 3 04:28:43 PDT 2017


On 2 May 2017, at 19:24, Russel Winder via digitalmars-d-ldc wrote:
> This could be an Oh #### :-(

There shouldn't be a reason to hard-code library names just to use 
shared libraries anyway.

You might be interested in the following PR: 
https://github.com/ldc-developers/ldc/pull/2044. Initially, I was 
opposed to this (C/C++ libraries sometimes ship with a dynamic as well 
as a static version of the same name just fine), but it seems like I 
underestimated the amount of ways this can go wrong in the real world 
(i.e. distro packages, etc.).

With something like that, choosing between static and shared libraries 
should just be a single command line flag. (Of course, this doesn't help 
in the slightest with your backwards-incompatibility issues.)

> instead of:
>
> -shared -defaultlib=phobos2-ldc

Why would you want to remove druntime from the list of linked libraries?

  — David


More information about the digitalmars-d-ldc mailing list