forked from mirrors/nixpkgs
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/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
|
||||||
|
|
Loading…
Reference in a new issue