atftp: fix static linking
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/
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/atftp/atftp.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/atftp/atftp.mk +5 -0
@@ -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
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/Signed-off-by Gustavo Zacarias <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard