[Nix-dev] dlopen in NixOS

Shea Levy shea at shealevy.com
Wed Dec 21 22:50:08 CET 2011


On 12/21/11 4:35 PM, Yury G. Kudryashov wrote:
> Lluís Batlle i Rossell wrote:
>
>> On Sun, Dec 18, 2011 at 01:15:26PM +0400, Yury G.  Kudryashov wrote:
>>> Hi!
>>>
>>> Today I realized that Qt looks for many libraries using dlopen(). The
>>> list of libraries Qt tries to dlopen() include:
>>> * libgdk-x11-2.0 (QtWebKit for flash plugin)
>>> * libgtk-x11-2.0 (QtWebKit for flash plugin)
>> It did the same with openssl. I remember having committed some trick long
>> ago.
>>
>> Iirc, it works fine if you force a "-lthelib" in LDFLAGS, and have the
>> libs in the buildInputs.
> All solutions that come to my mind have the following side-effect: gtk will
> be a build-time and runtime dependency of Qt. Any ideas how to avoid this?

Why not have a function argument that allows the user to choose if he 
wants to have gtk as a dependency?


More information about the nix-dev mailing list