Skip to content

Commit 47530ed

Browse files
committed
Fix linker error: link all examples against gnutls when available
The library now uses GnuTLS functions (gnutls_malloc, gnutls_free, gnutls_hex2bin) for PSK support, so all examples need to link against gnutls when HAVE_GNUTLS is defined, not just the PSK example.
1 parent 90383a1 commit 47530ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ benchmark_nodelay_SOURCES = benchmark_nodelay.cpp
4444
file_upload_SOURCES = file_upload.cpp
4545

4646
if HAVE_GNUTLS
47+
LDADD += -lgnutls
4748
noinst_PROGRAMS += minimal_https_psk
4849
minimal_https_psk_SOURCES = minimal_https_psk.cpp
49-
minimal_https_psk_LDADD = $(LDADD) -lgnutls
5050
endif

0 commit comments

Comments
 (0)