cups: fix static linking with GnuTLS
authorJörg Krause <joerg.krause@embedded.rocks>
Sun, 28 Feb 2016 16:07:20 +0000 (17:07 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 3 Jul 2016 10:43:39 +0000 (12:43 +0200)
commit4ff8fc555c8b9faebf7ec3245c342832be60aa03
treed689fd289e5e804755d0d934efe5c0a6192dc24b
parent0071464e8b92a270fe9c8031b0ea0e4a7fd9cbee
cups: fix static linking with GnuTLS

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@embedded.rocks>
[Thomas: refresh and rename patch.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/cups/0005-Fix-static-linking-with-GnuTLS.patch [new file with mode: 0644]