From 2650aa674081053645654f3878c534e244da2037 Mon Sep 17 00:00:00 2001 From: mreid-tt <943378+mreid-tt@users.noreply.github.com> Date: Mon, 7 Oct 2024 18:15:24 -0400 Subject: [PATCH] Update mysql config --- cross/diesel/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cross/diesel/Makefile b/cross/diesel/Makefile index 327b9556ed0..b2035285a62 100644 --- a/cross/diesel/Makefile +++ b/cross/diesel/Makefile @@ -25,8 +25,8 @@ CARGO_BUILD_ARGS += --features=mysql,mysqlclient-sys/buildtime_bindgen # do not read settings from bin/mysql_conf export "MYSQL_DB_SOCKET=/run/mysqld/mysqld10.sock" -# mysqlclient-sys: to find libmysqlclient -ENV += MYSQLCLIENT_LIB_DIR=$(STAGING_INSTALL_PREFIX)/lib +# let ./configure find mysql_config (it is a script and works for cross compile) +ENV += "PATH=$(PATH):$(STAGING_INSTALL_PREFIX)/bin" # to find dependencies of libmysqlclient (libz) ENV += RUSTFLAGS="-Clink-arg=-Wl,--rpath,$(INSTALL_PREFIX)/lib -Clink-arg=-Wl,--rpath-link,$(STAGING_INSTALL_PREFIX)/lib"