mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
wxPython: Fix runtime error due to library dependencies not in RUNPATH.
I think what's happening is that the linker automatically adds DT_NEEDED dependencies to some libraries because it finds these libraries are being used directly, but because they're not linked explicitly with -lflags, the gcc wrapper does not add them to RUNPATH.
This commit is contained in:
parent
dca9630fae
commit
e938fbbd10
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, pkgconfig, python, isPy3k, isPyPy, wxGTK, openglSupport ? true, pyopengl
|
||||
, version, sha256, wrapPython, setuptools, ...
|
||||
, version, sha256, wrapPython, setuptools, libX11, ...
|
||||
}:
|
||||
|
||||
assert wxGTK.unicode;
|
||||
@ -17,9 +17,11 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
pythonPath = [ python setuptools ];
|
||||
buildInputs = [ python setuptools pkgconfig wxGTK (wxGTK.gtk) wrapPython ] ++ stdenv.lib.optional openglSupport pyopengl;
|
||||
buildInputs = [ python setuptools pkgconfig wxGTK (wxGTK.gtk) wrapPython libX11 ] ++ stdenv.lib.optional openglSupport pyopengl;
|
||||
preConfigure = "cd wxPython";
|
||||
|
||||
NIX_LDFLAGS = "-lX11 -lgdk-x11-2.0";
|
||||
|
||||
installPhase = ''
|
||||
${python.interpreter} setup.py install WXPORT=gtk2 NO_HEADERS=1 BUILD_GLCANVAS=${if openglSupport then "1" else "0"} UNICODE=1 --prefix=$out
|
||||
wrapPythonPrograms
|
||||
|
Loading…
Reference in New Issue
Block a user