mariadb: fix build on darwin

My simplistic test seemed to work just fine, so I assume the
install_name_tool shenanigans became unnecessary at some point.
This commit is contained in:
Dan Peebles 2016-04-17 14:48:08 -04:00
parent 0352d4fb72
commit 5ced92f83b

View file

@ -103,15 +103,6 @@ stdenv.mkDerivation rec {
mv $out/lib $lib
mv $out/include $lib
''
+ stdenv.lib.optionalString stdenv.isDarwin ''
# 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.out}/lib -lz,g' \