[Buildroot] [PATCH 1/2] shairport-sync: fix static link with mbedtls

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Sep 5 19:44:47 UTC 2017


Hello,

On Tue,  5 Sep 2017 22:05:25 +0300, Baruch Siach wrote:

>  # Avahi or tinysvcmdns (shaiport-sync bundles its own version of tinysvcmdns).
>  # Avahi support needs libavahi-client, which is built by avahi if avahi-daemon
>  # and dbus is selected. Since there is no BR2_PACKAGE_LIBAVAHI_CLIENT config
> @@ -38,6 +40,10 @@ SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=openssl
>  else
>  SHAIRPORT_SYNC_DEPENDENCIES += mbedtls
>  SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=mbedtls
> +SHAIRPORT_SYNC_CONF_LIBS += -lmbedx509 -lmbedcrypto
> +ifeq ($(BR2_PACKAGE_MBEDTLS_COMPRESSION),y)
> +SHAIRPORT_SYNC_CONF_LIBS += -lz
> +endif
>  endif

This is crazy. Can we submit a mbedtls patch adding a pkg-config file ?
They are open to it it seems:
https://github.com/ARMmbed/mbedtls/issues/228. Of course,
shairport-sync would have to be modified to use it.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list