Skip to contentSkip to conversation

package/libodb-mysql: fix static build

PATCH New Fabrice Fontaine 2 participants 2 messages Jul 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/libodb-mysql: fix static build

Use mysql_config to help libodb-mysql to retrieve mysql dependencies such as -lz

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

---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Use mysql_config to avoid hardcoding -lz

 package/libodb-mysql/libodb-mysql.mk | 1 +
 1 file changed, 1 insertion(+)
package/libodb-mysql/libodb-mysql.mk +1 -0
index 97cbcddf93..835e5bc6bf 100644
@@ -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))
Signature · 1 line
2.27.0
#1 lore raw

PATCH v2 1/1 package/libodb-mysql: fix static build

Quoted 10 lines · On Tue, 14 Jul 2020 23:18:04 +0200 Fabrice Fontaine…

Use mysql_config to help libodb-mysql to retrieve mysql dependencies such as -lz

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

---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Use mysql_config to avoid hardcoding -lz

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com