3
0
Fork 0
forked from mirrors/nixpkgs

mariadb: Propagate library paths in mysql_config

This commit is contained in:
William A. Kennington III 2015-04-28 16:33:27 -07:00
parent 171275c7f9
commit 0405651521

View file

@ -90,6 +90,11 @@ stdenv.mkDerivation rec {
mv $out/lib $lib mv $out/lib $lib
mv $out/include $lib mv $out/include $lib
# Fix the mysql_config
sed -i $out/bin/mysql_config \
-e 's,-lz,-L${zlib}/lib -lz,g' \
-e 's,-lssl,-L${openssl}/lib -lssl,g'
# Add mysql_config to libs since configure scripts use it # Add mysql_config to libs since configure scripts use it
mkdir -p $lib/bin mkdir -p $lib/bin
cp $out/bin/mysql_config $lib/bin cp $out/bin/mysql_config $lib/bin