]> granicus.if.org Git - libevent/commitdiff
autotools: pass $(OPENSSL_INCS) for samples (FTBFS macOS)
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Mon, 21 Aug 2017 08:08:15 +0000 (01:08 -0700)
committerAzat Khuzhin <azat@libevent.org>
Sat, 2 Feb 2019 12:13:52 +0000 (15:13 +0300)
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)

sample/include.am

index d1a7242f7caa2ed1cfb926615d466ca8ed9649c7..cc003b78a69c36467c866171483d7d22d5a14dc2 100644 (file)
@@ -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