* [Buildroot] [PATCH] atftp: fix static linking
@ 2014-07-10 13:07 Gustavo Zacarias
2014-07-10 13:52 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Zacarias @ 2014-07-10 13:07 UTC (permalink / raw)
To: buildroot
Openssl uses libz hence pull it in, also needs to explicitly link
against libpthread. Fixes:
http://autobuild.buildroot.net/results/259/2592612be38a2c1dde21b44be2ecf25d1cc5211a/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/atftp/atftp.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/atftp/atftp.mk b/package/atftp/atftp.mk
index 1d6a7c3..a018b9d 100644
--- a/package/atftp/atftp.mk
+++ b/package/atftp/atftp.mk
@@ -9,10 +9,15 @@ ATFTP_SITE = http://sourceforge.net/projects/atftp/files/
ATFTP_LICENSE = GPLv2+
ATFTP_LICENSE_FILES = LICENSE
ATFTP_CONF_OPT = --disable-libwrap --disable-mtftp
+# For static we need to explicitly link against libpthread
+ATFTP_LIBS = -lpthread
+ATFTP_CONF_ENV = LIBS="$(ATFTP_LIBS)"
ifeq ($(BR2_PACKAGE_READLINE),y)
ATFTP_DEPENDENCIES += readline
ATFTP_CONF_OPT += --enable-libreadline
+# For static, readline links with ncurses
+ATFTP_LIBS += -lncurses
else
ATFTP_CONF_OPT += --disable-libreadline
endif
--
1.8.5.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] atftp: fix static linking
2014-07-10 13:07 [Buildroot] [PATCH] atftp: fix static linking Gustavo Zacarias
@ 2014-07-10 13:52 ` Baruch Siach
2014-07-10 13:55 ` Gustavo Zacarias
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2014-07-10 13:52 UTC (permalink / raw)
To: buildroot
Hi Gustavo,
On Thu, Jul 10, 2014 at 10:07:27AM -0300, Gustavo Zacarias wrote:
> Openssl uses libz hence pull it in,
I don't see openssl or libz in this patch. But...
> also needs to explicitly link
> against libpthread. Fixes:
> http://autobuild.buildroot.net/results/259/2592612be38a2c1dde21b44be2ecf25d1cc5211a/
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/atftp/atftp.mk | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/package/atftp/atftp.mk b/package/atftp/atftp.mk
> index 1d6a7c3..a018b9d 100644
> --- a/package/atftp/atftp.mk
> +++ b/package/atftp/atftp.mk
> @@ -9,10 +9,15 @@ ATFTP_SITE = http://sourceforge.net/projects/atftp/files/
> ATFTP_LICENSE = GPLv2+
> ATFTP_LICENSE_FILES = LICENSE
> ATFTP_CONF_OPT = --disable-libwrap --disable-mtftp
> +# For static we need to explicitly link against libpthread
> +ATFTP_LIBS = -lpthread
> +ATFTP_CONF_ENV = LIBS="$(ATFTP_LIBS)"
>
> ifeq ($(BR2_PACKAGE_READLINE),y)
> ATFTP_DEPENDENCIES += readline
> ATFTP_CONF_OPT += --enable-libreadline
> +# For static, readline links with ncurses
> +ATFTP_LIBS += -lncurses
... ncurses in not mentioned in the commit log.
> else
> ATFTP_CONF_OPT += --disable-libreadline
> endif
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-10 13:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-10 13:07 [Buildroot] [PATCH] atftp: fix static linking Gustavo Zacarias
2014-07-10 13:52 ` Baruch Siach
2014-07-10 13:55 ` Gustavo Zacarias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox