aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2016-07-04 15:05:17 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2016-07-04 15:27:49 +0200
commit382fa60f9c7445e962b290c74779a0e0fd7e310f (patch)
tree4d07eabb2b411c19780c5e3a9ac6ef804d9ed3fa
parent14463d9319731b13aa0a7dc25207fb545eb23ee4 (diff)
downloadbuildroot-382fa60f9c7445e962b290c74779a0e0fd7e310f.tar.gz
buildroot-382fa60f9c7445e962b290c74779a0e0fd7e310f.tar.bz2
package/open2300: fix static builds
Fixes http://autobuild.buildroot.org/results/036/036c9088cfaae421c15b650f35e7ffe6ab934031/ libmysqlclient needs -lz to build, so we have to pass it explicitly for static builds. For almost-two-and-a-half years this error has been happenning, noone ever tried to fix it. This is now done, at last! ;-] [Peter: add autobuilder reference] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/open2300/open2300.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/open2300/open2300.mk b/package/open2300/open2300.mk
index 73db2a0023..323f566cb4 100644
--- a/package/open2300/open2300.mk
+++ b/package/open2300/open2300.mk
@@ -21,6 +21,10 @@ OPEN2300_DEPENDENCIES += mysql
OPEN2300_BINS += mysql2300 mysqlhistlog2300
OPEN2300_CFLAGS += -I$(STAGING_DIR)/usr/include/mysql
OPEN2300_LDFLAGS += -L$(STAGING_DIR)/usr/lib/mysql -lmysqlclient
+ifeq ($(BR2_STATIC_LIBS),y)
+# mysql needs -lz, so we need to specify it for static builds
+OPEN2300_LDFLAGS += -lz
+endif
endif
define OPEN2300_BUILD_CMDS