mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
lmdb: don't attempt the .so if static, as it would fail
This commit is contained in:
parent
0200b78493
commit
02c6293280
@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
|
||||
patches = [ ./hardcoded-compiler.patch ./bin-ext.patch ];
|
||||
patchFlags = [ "-p3" ];
|
||||
|
||||
# Don't attempt the .so if static, as it would fail.
|
||||
postPatch = lib.optionalString stdenv.hostPlatform.isStatic ''
|
||||
sed 's/^ILIBS\>.*/ILIBS = liblmdb.a/' -i Makefile
|
||||
'';
|
||||
|
||||
outputs = [ "bin" "out" "dev" ];
|
||||
|
||||
buildInputs = lib.optional stdenv.hostPlatform.isWindows windows.pthreads;
|
||||
|
Loading…
Reference in New Issue
Block a user