mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
mariadb: Propagate library paths in mysql_config
This commit is contained in:
parent
171275c7f9
commit
0405651521
|
@ -90,6 +90,11 @@ stdenv.mkDerivation rec {
|
|||
mv $out/lib $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
|
||||
mkdir -p $lib/bin
|
||||
cp $out/bin/mysql_config $lib/bin
|
||||
|
|
Loading…
Reference in a new issue