Skip to content

Commit

Permalink
Update mysql config
Browse files Browse the repository at this point in the history
  • Loading branch information
mreid-tt committed Oct 7, 2024
1 parent 0d626bb commit 2650aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cross/diesel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 2650aa6

Please sign in to comment.