[oe] [meta-networking][PATCH] openflow: add libcrypto to static openflow library

Joe MacDonald joe_macdonald at mentor.com
Fri Mar 13 17:56:48 UTC 2015


An update in OpenSSL removed the -lcrypto from libssl's pkg-config
options.  The old behaviour always linked it with -lssl, so revert to that
for now.

Signed-off-by: Joe MacDonald <joe_macdonald at mentor.com>
---

There's a number of ways to do this, I think this is the least-invasive
solution.  That said, the upstream openflow reference implementation has seen no
activity in about three years so I'm thinking very soon I'll remove the _git
recipe entirely in favour of a more up-to-date (with respect to the
specifications) version, so I also didn't want invest too much into fixing the
build issues (this should actually be solved by ensuring the library buildng gcc
commands get -static passed to them, but that turns out to be kind of a mess)
with this recipe.

-J.

 meta-networking/recipes-protocols/openflow/openflow.inc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta-networking/recipes-protocols/openflow/openflow.inc b/meta-networking/recipes-protocols/openflow/openflow.inc
index 1a226f8..7a1e478 100644
--- a/meta-networking/recipes-protocols/openflow/openflow.inc
+++ b/meta-networking/recipes-protocols/openflow/openflow.inc
@@ -15,14 +15,17 @@ SRC_URI = "git://gitosis.stanford.edu/openflow.git;protocol=git"
 
 DEPENDS = "virtual/libc"
 
-EXTRA_OECONF += "KARCH=${TARGET_ARCH}"
-
 PACKAGECONFIG ??= "openssl"
 PACKAGECONFIG[openssl] = "--enable-ssl,--disable-ssl, openssl, libssl"
 
+EXTRA_OECONF += " \
+                 KARCH=${TARGET_ARCH} \
+                 ${@base_contains('PACKAGECONFIG', 'openssl', 'SSL_LIBS="-lssl -lcrypto"', '', d)} \
+                "
+
 S = "${WORKDIR}/git"
 
-inherit autotools-brokensep
+#inherit autotools-brokensep
 
 do_configure() {
     ./boot.sh
-- 
1.9.1




More information about the Openembedded-devel mailing list