package/libodb-mysql: fix static build
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 14 Jul 2020 21:18:04 +0000 (23:18 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 14 Jul 2020 21:49:20 +0000 (23:49 +0200)
Use mysql_config to help libodb-mysql to retrieve mysql dependencies
such as -lz

Fixes:
 - http://autobuild.buildroot.org/results/a5447c5105f15606ed562b39ca84c06e7e6b78c0

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libodb-mysql/libodb-mysql.mk

index 97cbcddf934f186de739085cd738f31d2ce73cb0..835e5bc6bf887339754463c68ad90def46ee1b39 100644 (file)
@@ -12,5 +12,6 @@ LIBODB_MYSQL_INSTALL_STAGING = YES
 LIBODB_MYSQL_LICENSE = GPL-2.0
 LIBODB_MYSQL_LICENSE_FILES = LICENSE
 LIBODB_MYSQL_DEPENDENCIES = libodb mysql
+LIBODB_MYSQL_CONF_ENV = LIBS="$(shell $(STAGING_DIR)/usr/bin/mysql_config --libs)"
 
 $(eval $(autotools-package))