darwin-CF: use @rpath for library id and add an rpath entry for CF based on NIX_COREFOUNDATION_RPATH
This commit is contained in:
parent
0f043d497d
commit
92652b4d79
@ -145,6 +145,10 @@ if [ "$NIX_@infixSalt@_DONT_SET_RPATH" != 1 ]; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -n "${NIX_COREFOUNDATION_RPATH:-}" ]; then
|
||||||
|
extraAfter+=(-rpath $NIX_COREFOUNDATION_RPATH)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ appleDerivation {
|
|||||||
--replace "/usr/sbin/" "" \
|
--replace "/usr/sbin/" "" \
|
||||||
--replace "/bin/" "" \
|
--replace "/bin/" "" \
|
||||||
--replace "INSTALLNAME=/System" "INSTALLNAME=$out" \
|
--replace "INSTALLNAME=/System" "INSTALLNAME=$out" \
|
||||||
--replace "install_name_tool -id /System" "install_name_tool -id $out" \
|
--replace "install_name_tool -id /System/Library/Frameworks" "install_name_tool -id @rpath" \
|
||||||
--replace 'chown -RH -f root:wheel $(DSTBASE)/CoreFoundation.framework' "" \
|
--replace 'chown -RH -f root:wheel $(DSTBASE)/CoreFoundation.framework' "" \
|
||||||
--replace 'chmod -RH' 'chmod -R'
|
--replace 'chmod -RH' 'chmod -R'
|
||||||
|
|
||||||
|
@ -300,6 +300,7 @@ in rec {
|
|||||||
targetPlatform = localSystem;
|
targetPlatform = localSystem;
|
||||||
|
|
||||||
preHook = commonPreHook + ''
|
preHook = commonPreHook + ''
|
||||||
|
export NIX_COREFOUNDATION_RPATH=${pkgs.darwin.CF}/Library/Frameworks
|
||||||
export PATH_LOCALE=${pkgs.darwin.locale}/share/locale
|
export PATH_LOCALE=${pkgs.darwin.locale}/share/locale
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user