# HG changeset patch # User Aki Tuomi # Date 1514450848 -7200 # Node ID b09a8c92479b4ffb902d6c3fe9fca5451b700651 # Parent 2b2c4857a52b5fb5448d1b42c64d1526d7b1189e lib-http: Only depend on iostream openssl lib if building with openssl Fixes build without openssl diff -r 2b2c4857a52b -r b09a8c92479b src/lib-http/Makefile.am --- a/src/lib-http/Makefile.am Mon Dec 25 18:24:35 2017 +0200 +++ b/src/lib-http/Makefile.am Thu Dec 28 10:47:28 2017 +0200 @@ -148,6 +148,11 @@ ../lib-settings/libsettings.la \ $(test_deps) +test_http_libs_ssl= +if BUILD_OPENSSL +test_http_libs_ssl += ../lib-ssl-iostream/libssl_iostream_openssl.la +endif + test_http_payload_SOURCES = test-http-payload.c test_http_payload_LDFLAGS = -export-dynamic test_http_payload_LDADD = \ @@ -159,7 +164,8 @@ test_http_client_LDFLAGS = -export-dynamic test_http_client_LDADD = \ $(test_http_libs) \ - ../lib-ssl-iostream/libssl_iostream_openssl.la + $(test_http_libs_ssl) + test_http_client_DEPENDENCIES = \ $(test_http_deps)