forked from mirrors/nixpkgs
Fix Samba build
This commit is contained in:
parent
fcf99efcd2
commit
8b2f226a96
|
@ -75,7 +75,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
postFixup = ''
|
||||
export SAMBA_LIBS="$(find $out -type f -name \*.so -exec dirname {} \; | sort | uniq)"
|
||||
read -r -d "" SCRIPT << EOF
|
||||
read -r -d "" SCRIPT << EOF || true
|
||||
[ -z "\$SAMBA_LIBS" ] && exit 1;
|
||||
BIN='{}';
|
||||
OLD_LIBS="\$(patchelf --print-rpath "\$BIN" 2>/dev/null | tr ':' '\n')";
|
||||
|
|
Loading…
Reference in a new issue