call pkgconfig in order to be able to cross build qtbase with MySql.

Qt's build system calls mysql_config... which won't work in a cross build
environment like Debian's, as it will throw an exec format error.

In order to solve this call pkgconfig and use mysqlclient.pc.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971604
Forwarded: not-needed
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>

Gbp-Pq: Name cross_build_mysql.diff
This commit is contained in:
Helmut Grohne 2022-05-14 17:41:01 +08:00 committed by openKylinBot
parent b188e29799
commit e54e6798fd
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@
},
"headers": "mysql.h",
"sources": [
{ "type": "pkgConfig", "args": "mysqlclient" },
{ "type": "mysqlConfig", "query": "--libs_r", "cleanlibs": true },
{ "type": "mysqlConfig", "query": "--libs", "cleanlibs": true },
{ "type": "mysqlConfig", "query": "--libs_r", "cleanlibs": false },