blob: ad3f0bb1fdcbfc04c308b324ccdfb3072a5879ba [file] [log] [blame]
Andrew Geissler72956ed2021-01-08 16:11:14 -06001From 2089b514045d2de64a5d9c54e241731e85d77df2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 14 Dec 2020 22:11:59 -0800
4Subject: [PATCH] makefile.am: Fix build when build dir is not same as
5 sourcedir
6
7This ensures right include paths are added to compiler
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 Makefile.am | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/Makefile.am b/Makefile.am
15index eba85a1..da998ff 100644
16--- a/Makefile.am
17+++ b/Makefile.am
18@@ -19,7 +19,7 @@ if COND_DEBUG
19 MAYBE_DEBUG=-g -O0
20 endif
21
22-AM_CFLAGS = $(MAYBE_COVERAGE) $(MAYBE_DEBUG) $(MAYBE_TRACE)
23+AM_CFLAGS = $(MAYBE_COVERAGE) $(MAYBE_DEBUG) $(MAYBE_TRACE) -I$(srcdir)/inc
24
25 check_PROGRAMS = tests/test-shunting-yard
26 tests_test_shunting_yard_SOURCES = src/shunting-yard.c inc/shunting-yard.h \
27--
282.29.2
29