From c2510a01a58acff203e6541a22fe321146e1a02d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Mar 2015 23:08:55 +0900 Subject: [PATCH] examples: Place AM_CPPFLAGS first to use in-package header files first Fixes GH-192 --- examples/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/Makefile.am b/examples/Makefile.am index 095eda0d..5bcf2d10 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -60,7 +60,10 @@ if ENABLE_ASIO_LIB noinst_PROGRAMS += asio-sv asio-sv2 asio-cl asio-cl2 -ASIOCPPFLAGS = ${BOOST_CPPFLAGS} ${AM_CPPFLAGS} +# AM_CPPFLAGS must be placed first, so that header file (e.g., +# nghttp2/nghttp2.h) in this package is used rather than installed +# one. +ASIOCPPFLAGS = ${AM_CPPFLAGS} ${BOOST_CPPFLAGS} ASIOLDADD = $(top_builddir)/lib/libnghttp2.la \ $(top_builddir)/src/libnghttp2_asio.la @JEMALLOC_LIBS@ \ $(top_builddir)/third-party/libhttp-parser.la \