[Buildroot] [PATCH] package/cups: fix static linking with GnuTLS

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Jul 3 10:44:34 UTC 2016


Hello,

On Sun, 28 Feb 2016 17:07:20 +0100, Jörg Krause wrote:
> cups forgets to link against the libs found by pkg-config if it is build with
> GnuTLS support.
> 
> Otherwise, static build fails with:
> ../cups/libcups.a(tls.o): In function `http_gnutls_create_credential':
> cups-2.1.2/cups/tls-gnutls.c:762: undefined reference to `gnutls_x509_crt_init'
> [..]
> 
> Fixes:
> http://autobuild.buildroot.net/results/205/20509b7d1edc73dc2a7622f2ae7dbf9f6665a918/
> http://autobuild.buildroot.net/results/b86/b86d685caf8cf812f9505fca2de36fb8c18baee1/
> 
> Patch is sent upstream.
> 
> Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
> ---
>  .../cups/0004-Fix-static-linking-with-GnuTLS.patch | 39 ++++++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 package/cups/0004-Fix-static-linking-with-GnuTLS.patch

In the end, since nobody ever worked on a better solution, I applied
your patch (together with a bump to cups 2.1.4).

Thanks,

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


More information about the buildroot mailing list