From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vicente Olivert Riera Date: Wed, 26 Aug 2015 10:09:31 +0100 Subject: [Buildroot] [PATCH] package/tn5250: fix static linking problem In-Reply-To: <20150826090804.GG8919@tarshish> References: <1440579591-23594-1-git-send-email-Vincent.Riera@imgtec.com> <20150826090804.GG8919@tarshish> Message-ID: <55DD824B.6030700@imgtec.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Baruch Siach, On 08/26/2015 10:08 AM, Baruch Siach wrote: > Hi Vicente, > > On Wed, Aug 26, 2015 at 09:59:51AM +0100, Vicente Olivert Riera wrote: >> tn5250 fails to link with openssl when building statically. We need to >> add the needed libraries to the LIBS configure environment variable in >> order to make tn5250 able to find them. >> >> Fixes: >> >> http://autobuild.buildroot.net/results/95f/95f6df0d01e4944ecd84e830e2bbd8389e1d3e3d/ >> >> Signed-off-by: Vicente Olivert Riera >> --- >> package/tn5250/tn5250.mk | 1 + >> 1 files changed, 1 insertions(+), 0 deletions(-) >> >> diff --git a/package/tn5250/tn5250.mk b/package/tn5250/tn5250.mk >> index 213f02c..953b395 100644 >> --- a/package/tn5250/tn5250.mk >> +++ b/package/tn5250/tn5250.mk >> @@ -12,6 +12,7 @@ TN5250_LICENSE = LGPLv2.1+ >> TN5250_LICENSE_FILES = COPYING >> >> ifeq ($(BR2_PACKAGE_OPENSSL),y) >> +TN5250_CONF_ENV += LIBS="-lssl -lcrypto -lz" > > Please use pkg-config. See package/vsftpd/vsftpd.mk for example. that was my first approach and it didn't work. Does it work for you? Regards, Vincent. >> TN5250_CONF_OPTS += --with-ssl-dir=$(STAGING_DIR)/usr >> TN5250_DEPENDENCIES += openssl >> else > > baruch >