Skip to contentSkip to conversation

package/libeXosip2: add optional support for c-ares

PATCH New Bernd Kuhls 2 participants 2 messages Feb 20, 2016 – Feb 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libeXosip2: add optional support for c-ares

When c-ares was compiled before, libeXosip2 will use it as optional dependency:

$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/sip_reg | grep NEEDED | sort
 0x0000000000000001 (NEEDED)             Shared library: [libcares.so.2]
[...]

The build system offers no option to en-/disable c-ares support:
http://git.savannah.gnu.org/cgit/exosip.git/tree/configure.in?h=exosip-3.X.X#n208

---
 package/libeXosip2/libeXosip2.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/libeXosip2/libeXosip2.mk +4 -0
index d7d0af8..d101f95 100644
@@ -20,6 +20,10 @@ ifeq ($(BR2_arc),y)
 LIBEXOSIP2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -U__arc__"
 endif
 
+ifeq ($(BR2_PACKAGE_C_ARES),y)
+LIBEXOSIP2_DEPENDENCIES += c-ares
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 LIBEXOSIP2_DEPENDENCIES += openssl
 LIBEXOSIP2_CONF_OPTS += --enable-openssl
Signature · 1 line
2.7.0
#1 lore raw

PATCH 1/1 package/libeXosip2: add optional support for c-ares

Dear Bernd Kuhls,

Quoted 7 lines · Bernd Kuhls

When c-ares was compiled before, libeXosip2 will use it as optional dependency:

$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/sip_reg | grep NEEDED | sort
 0x0000000000000001 (NEEDED)             Shared library: [libcares.so.2]
[...]
Quoted 7 lines

The build system offers no option to en-/disable c-ares support:
http://git.savannah.gnu.org/cgit/exosip.git/tree/configure.in?h=exosip-3.X.X#n208

---
 package/libeXosip2/libeXosip2.mk | 4 ++++
 1 file changed, 4 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com