Skip to contentSkip to conversation

apr: do not try to use sctp.h

PATCH In review Joe Slater 2 participants 2 messages Apr 18, 2014 – Apr 19, 2014

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 apr: do not try to use sctp.h

If we let configure look for sctp.h it might find it on the host, so suppress the search with two cached config variables.

---
 meta/recipes-support/apr/apr_1.4.8.bb |    4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-support/apr/apr_1.4.8.bb +4 -0
index d834170..c14f64b 100644
@@ -24,6 +24,10 @@ OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
 # Added to fix some issues with cmake. Refer to https://github.com/bmwcarit/meta-ros/issues/68#issuecomment-19896928
 CACHED_CONFIGUREVARS += "apr_cv_mutex_recursive=yes"
 
+# Also suppress trying to use sctp.
+#
+CACHED_CONFIGUREVARS += "ac_cv_header_netinet_sctp_h=no ac_cv_header_netinet_sctp_uio_h=no"
+
 do_configure_prepend() {
 	cd ${S}
 	./buildconf
Signature · 1 line
1.7.9.5
#1 lore raw

meta/recipes-support/apr/apr_1.4.8.bb OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'" · line 30

Quoted 6 lines · Joe Slater

CACHED_CONFIGUREVARS += "apr_cv_mutex_recursive=yes"

meta/recipes-support/apr/apr_1.4.8.bb +4 -0
+# Also suppress trying to use sctp.
+#
+CACHED_CONFIGUREVARS += "ac_cv_header_netinet_sctp_h=no ac_cv_header_netinet_sctp_uio_h=no"
+

Put it in single var above. Is there any way to make is cross compile safe too instead of disabling the tests