Skip to contentSkip to conversation

atftp: fix static linking

PATCH New Gustavo Zacarias 2 participants 2 messages Jul 10, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 atftp: fix static linking

Readline uses ncurses hence pull it in, also needs to explicitly link against libpthread. Fixes:
http://autobuild.buildroot.net/results/259/2592612be38a2c1dde21b44be2ecf25d1cc5211a/

---
 package/atftp/atftp.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/atftp/atftp.mk +5 -0
index 1d6a7c3..a018b9d 100644
@@ -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
Signature · 1 line
1.8.5.5
#1 lore raw

PATCH v2 1/1 atftp: fix static linking

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Readline uses ncurses hence pull it in, also needs to explicitly link against libpthread. Fixes:
http://autobuild.buildroot.net/results/259/2592612be38a2c1dde21b44be2ecf25d1cc5211a/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard