mariadb-connector-c: fix locate libdir and plugindir
This commit is contained in:
parent
272b35bc91
commit
611b957c98
1 changed files with 5 additions and 2 deletions
|
@ -29,8 +29,11 @@ in stdenv.mkDerivation {
|
|||
|
||||
postPatch = ''
|
||||
substituteInPlace mariadb_config/mariadb_config.c.in \
|
||||
--replace '-I%s/@INSTALL_INCLUDEDIR@' "-I$dev/include" \
|
||||
--replace '-L%s/@INSTALL_LIBDIR@' "-L$out/lib/mariadb"
|
||||
--replace '#define INCLUDE "-I%s/@INSTALL_INCLUDEDIR@ -I%s/@INSTALL_INCLUDEDIR@/mysql"' "#define INCLUDE \"-I$dev/include -I$dev/include/mysql\"" \
|
||||
--replace '#define LIBS "-L%s/@INSTALL_LIBDIR@/ -lmariadb"' "#define LIBS \"-L$out/lib/mariadb -lmariadb\"" \
|
||||
--replace '#define PKG_LIBDIR "%s/@INSTALL_LIBDIR@"' "#define PKG_LIBDIR \"$out/lib/mariadb\"" \
|
||||
--replace '#define PLUGIN_DIR "%s/@INSTALL_PLUGINDIR@"' "#define PLUGIN_DIR \"$out/lib/mariadb/plugin\"" \
|
||||
--replace '#define PKG_PLUGINDIR "%s/@INSTALL_PLUGINDIR@"' "#define PKG_PLUGINDIR \"$out/lib/mariadb/plugin\""
|
||||
'' + lib.optionalString stdenv.hostPlatform.isStatic ''
|
||||
# Disables all dynamic plugins
|
||||
substituteInPlace cmake/plugins.cmake \
|
||||
|
|
Loading…
Reference in a new issue