* [Buildroot] [PATCH] package/open2300: fix static builds
@ 2016-07-04 13:05 Yann E. MORIN
2016-07-04 13:40 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Yann E. MORIN @ 2016-07-04 13:05 UTC (permalink / raw)
To: buildroot
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! ;-]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
package/open2300/open2300.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/open2300/open2300.mk b/package/open2300/open2300.mk
index 73db2a0..323f566 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
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] package/open2300: fix static builds
2016-07-04 13:05 [Buildroot] [PATCH] package/open2300: fix static builds Yann E. MORIN
@ 2016-07-04 13:40 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2016-07-04 13:40 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> 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! ;-]
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Committed after adding a reference to the autobuilders, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-04 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-04 13:05 [Buildroot] [PATCH] package/open2300: fix static builds Yann E. MORIN
2016-07-04 13:40 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.