Improve cross-compile support
authorHelmut Grohne <helmut@subdivi.de>
Tue, 5 Jan 2021 21:25:00 +0000 (22:25 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 20 Jun 2024 17:16:27 +0000 (17:16 +0000)
commit1f482e80ceefa8d1058d5dc5872c0128606c97e8
tree87555823a187c9db13a6aa3aeb48031f7108733d
parent660857b12be9563180aa0d32146158412fe48165
Improve cross-compile support

The check for the signedness of size_t really doesn't have to be run as
that is a compile time property.

Beyond that, dovecot uses mysql_config. I've looked into that and
mysql_config is unfixably broken during cross builds. It will not be
fixed. Instead, please use pkg-config. My patch implements that with a
fallback to mysql_config to avoid breaking other users.

Last but not least, src/lib-lua/Makefile.am adds $(LUA_LIBS) to
libdovecot_lua_la_DEPENDENCIES. As it happens, LUA_LIBS contains a -L
flag and when that flag shows up in a dependency, make gives up. I have
no clue why one would add LUA_LIBS to DEPENDENCIES as it already is
being correctly added to LIBADD. My patch suggests to quite simply drop
that.

Gbp-Pq: Name Improve-cross-compile-support.patch
m4/want_mysql.m4
src/lib-lua/Makefile.am