From: Carlo Marcelo Arenas Belón Date: Mon, 21 Aug 2017 08:08:15 +0000 (-0700) Subject: autotools: pass $(OPENSSL_INCS) for samples (FTBFS macOS) X-Git-Tag: release-2.1.9-beta^2~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2495265b1faa91df5f6c835fdae4d5ec4605683;p=libevent autotools: pass $(OPENSSL_INCS) for samples (FTBFS macOS) if OpenSSL is in a non standard location, need to pass that information to any sample that needs it Closes: #550 (cherry picked from commit 0ec5edde503096a81831f36441a4115574ac45f0) --- diff --git a/sample/include.am b/sample/include.am index d1a7242f..cc003b78 100644 --- a/sample/include.am +++ b/sample/include.am @@ -16,16 +16,16 @@ SAMPLES = \ if OPENSSL SAMPLES += sample/le-proxy sample_le_proxy_SOURCES = sample/le-proxy.c -sample_le_proxy_LDADD = libevent.la libevent_openssl.la ${OPENSSL_LIBS} ${OPENSSL_LIBADD} -sample_le_proxy_INCLUDES = $(OPENSSL_INCS) +sample_le_proxy_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD) +sample_le_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS) SAMPLES += sample/https-client sample_https_client_SOURCES = \ sample/https-client.c \ sample/hostcheck.c \ sample/openssl_hostname_validation.c -sample_https_client_LDADD = libevent.la libevent_openssl.la ${OPENSSL_LIBS} ${OPENSSL_LIBADD} -sample_https_client_INCLUDES = $(OPENSSL_INCS) +sample_https_client_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD) +sample_https_client_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS) noinst_HEADERS += \ sample/hostcheck.h \ sample/openssl_hostname_validation.h