summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Makefile2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e206875a..91a1ecf1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2009-11-23 Kaz Kylheku <kkylheku@gmail.com>
+ * Makefile (CFLAGS): Added -I. so current directory is first
+ in the include search path. This is needed for finding
+ generated header files, when building in a separate directory.
+
+2009-11-23 Kaz Kylheku <kkylheku@gmail.com>
+
* lib.c (chk_malloc, chk_realloc): Fix diagnosable conversion,
caught by gcc 4.1.1.
diff --git a/Makefile b/Makefile
index 809e7eda..1313fe7a 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@
-include config.make
-CFLAGS := -I$(top_srcdir) $(LANG_FLAGS) $(DIAG_FLAGS) \
+CFLAGS := -I. -I$(top_srcdir) $(LANG_FLAGS) $(DIAG_FLAGS) \
$(OPT_FLAGS) $(INLINE_FLAGS) $(DBG_FLAGS)
OBJS := txr.o lex.yy.o y.tab.o match.o lib.o regex.o gc.o unwind.o stream.o