mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
mariadb: fix multiple outputs on darwin
This commit is contained in:
parent
91bc2e97ba
commit
86dae70173
1 changed files with 6 additions and 0 deletions
|
@ -93,6 +93,12 @@ stdenv.mkDerivation rec {
|
|||
mv $out/lib $lib
|
||||
mv $out/include $lib
|
||||
|
||||
# Fix library rpaths
|
||||
# TODO: put this in the stdenv to prepare for wide usage of multi-output derivations
|
||||
for file in $(grep -rl $out/lib $lib); do
|
||||
install_name_tool -delete_rpath $out/lib -add_rpath $lib $file
|
||||
done
|
||||
|
||||
# Fix the mysql_config
|
||||
sed -i $out/bin/mysql_config \
|
||||
-e 's,-lz,-L${zlib}/lib -lz,g' \
|
||||
|
|
Loading…
Reference in a new issue