Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] package/uftp: fix openssl static linking
Date: Tue, 19 Mar 2019 21:46:41 +0100	[thread overview]
Message-ID: <20190319204642.28920-2-fontaine.fabrice@gmail.com> (raw)
In-Reply-To: <20190319204642.28920-1-fontaine.fabrice@gmail.com>

Fixes:
 - http://autobuild.buildroot.org/results/051cfd993b65830c34e675d797e241c272b6f35a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/uftp/uftp.mk | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/package/uftp/uftp.mk b/package/uftp/uftp.mk
index bbc362652b..1f75a5bac8 100644
--- a/package/uftp/uftp.mk
+++ b/package/uftp/uftp.mk
@@ -10,12 +10,17 @@ UFTP_DEPENDENCIES = openssl
 UFTP_LICENSE = GPL-3.0+
 UFTP_LICENSE_FILES = LICENSE.txt
 
+ifeq ($(BR2_STATIC_LIBS),y)
+UFTP_MAKE_OPTS += CRYPT_LIB='-lssl -lcrypto -lz'
+endif
+
 define UFTP_BUILD_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(UFTP_MAKE_OPTS)
 endef
 
 define UFTP_INSTALL_TARGET_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(UFTP_MAKE_OPTS) \
+		DESTDIR=$(TARGET_DIR) install
 endef
 
 $(eval $(generic-package))
-- 
2.14.1

  reply	other threads:[~2019-03-19 20:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-19 20:46 [Buildroot] [PATCH 1/3] package/uftp: needs MMU, threads and wchar Fabrice Fontaine
2019-03-19 20:46 ` Fabrice Fontaine [this message]
2019-03-19 20:59   ` [Buildroot] [PATCH 2/3] package/uftp: fix openssl static linking Thomas Petazzoni
2019-03-19 20:46 ` [Buildroot] [PATCH 3/3] package/uftp: openssl is optional, not mandatory Fabrice Fontaine
2019-03-19 21:04 ` [Buildroot] [PATCH 1/3] package/uftp: needs MMU, threads and wchar Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190319204642.28920-2-fontaine.fabrice@gmail.com \
    --to=fontaine.fabrice@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox