Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 1 | From 2089b514045d2de64a5d9c54e241731e85d77df2 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 14 Dec 2020 22:11:59 -0800 |
| 4 | Subject: [PATCH] makefile.am: Fix build when build dir is not same as |
| 5 | sourcedir |
| 6 | |
| 7 | This ensures right include paths are added to compiler |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | Makefile.am | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/Makefile.am b/Makefile.am |
| 15 | index 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 | -- |
| 28 | 2.29.2 |
| 29 | |