Merge pull request #34345 from LnL7/darwin-mariadb

mariadb: fix connector-c library install_name on darwin
This commit is contained in:
Daiderd Jordan 2018-01-28 18:23:34 +01:00 committed by GitHub
commit 72d120e7b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,6 +180,11 @@ connector-c = stdenv.mkDerivation rec {
"-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
];
# The cmake setup-hook uses $out/lib by default, this is not the case here.
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$out/lib/mariadb")
'';
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ openssl zlib ];
buildInputs = [ libiconv ];