Bug 91 - vsftpd fails to build with ssl support
Summary: vsftpd fails to build with ssl support
Status: RESOLVED WORKSFORME
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-09 11:50 UTC by Markus Brunner
Modified: 2009-02-09 15:02 UTC (History)
2 users (show)

See Also:
Host: i386
Target:
Build: i386


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Brunner 2009-02-09 11:50:30 UTC
vsftpd fails to build (link) with ssl support because -lcrypto is missing in  $(VSFTPD_LIBS) in the vsftpd.mk
Comment 1 Markus Brunner 2009-02-09 12:10:39 UTC
Sorry, I forgot to mention that I had to set the LDFLAGS. I'm using an externel toolchain.

$(VSFTPD_DIR)/$(VSFTPD_BINARY): $(VSFTPD_DIR)/.configured
	$(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" LIBS="$(VSFTPD_LIBS)" -C $(VSFTPD_DIR)
Comment 2 Peter Korsgaard 2009-02-09 15:02:37 UTC
I cannot reproduce this here, vsftpd.mk has:

ifeq ($(BR2_PACKAGE_OPENSSL),y)
VSFTPD_LIBS:=-lcrypt -lssl
else
VSFTPD_LIBS:=-lcrypt
endif

And:

$(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" LIBS="$(VSFTPD_LIBS)" -C $(VSFTPD_DIR)