tdb: fix install_name
on Darwin
This commit is contained in:
parent
4992468353
commit
bf84aea48e
|
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
src = fetchurl {
|
||||
url = "mirror://samba/tdb/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-hDTJyFfRPOP6hGb3VgHyXDaTZ2s2kZ8VngrWEhuvXOg=";
|
||||
hash = "sha256-hDTJyFfRPOP6hGb3VgHyXDaTZ2s2kZ8VngrWEhuvXOg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -48,6 +48,10 @@ stdenv.mkDerivation rec {
|
|||
"--builtin-libraries=replace"
|
||||
];
|
||||
|
||||
postFixup = if stdenv.isDarwin
|
||||
then ''install_name_tool -id $out/lib/libtdb.dylib $out/lib/libtdb.dylib''
|
||||
else null;
|
||||
|
||||
# python-config from build Python gives incorrect values when cross-compiling.
|
||||
# If python-config is not found, the build falls back to using the sysconfig
|
||||
# module, which works correctly in all cases.
|
||||
|
|
Loading…
Reference in a new issue