From 0fe9b6ac5cc2f57275dcaf721636b7a365e9b3fd Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 31 Mar 2017 05:50:57 -0700 Subject: Fix broken out-of-tree build. Reported by Marco Wahl. When building in a separate directory, the y.tab.h file isn't found because the current directory is not searched by the compiler. It searches only the original source tree and the local config directory. * Makefile (TXR_CFLAGS): We must have . in the include file search path otherwise files can only find y.tab.h when it's in the same directory where they are. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a3026e1e..fce8e628 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,8 @@ VERBOSE := TXR_CFLAGS := $(CFLAGS) -TXR_CFLAGS += -iquote $(conf_dir) $(if $(top_srcdir),-iquote $(top_srcdir)) \ +TXR_CFLAGS += -iquote $(conf_dir) \ + -iquote . $(if $(top_srcdir), -iquote $(top_srcdir)) \ $(LANG_FLAGS) $(DIAG_FLAGS) \ $(DBG_FLAGS) $(PLATFORM_CFLAGS) $(EXTRA_FLAGS) TXR_CFLAGS += $(filter-out $(REMOVE_FLAGS),$(TXR_CFLAGS)) -- cgit v1.2.3