examples: Place AM_CPPFLAGS first to use in-package header files first

Fixes GH-192
This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-26 23:08:55 +09:00
parent dc85623060
commit c2510a01a5
1 changed files with 4 additions and 1 deletions

View File

@ -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 \