summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2004-09-06 22:30:16 +0200
committerunknown <guilhem@mysql.com>2004-09-06 22:30:16 +0200
commite663f91ad7a7315c339713f390bf1fc5fec381ad (patch)
tree1faef2ee7a829fd9956508a60ee69e133863485e
parent0d34c63536031ee2e104ec8cb94e5a1a3dd68ab4 (diff)
downloadmariadb-git-e663f91ad7a7315c339713f390bf1fc5fec381ad.tar.gz
Dependency fix. We observed that doing any change to class THD in sql_class.h resulted in mysqld going crazy (parsing errors,
query cache errors in query_cache.test). This is because sql_yacc.cc depends on several .h files but those were not listed in the dependencies of sql_yacc.o. The present patch does fix the issue; but my auto*-expert colleagues may have a better one. sql/Makefile.am: sql_yacc.c includes mysql_priv.h, slave.h etc, so sql_yacc.o does depend on these .h files; so they need to be listed in the dependencies.
-rw-r--r--sql/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/Makefile.am b/sql/Makefile.am
index 0a664a120a5..0fc81a48c63 100644
--- a/sql/Makefile.am
+++ b/sql/Makefile.am
@@ -108,7 +108,7 @@ gen_lex_hash.o: gen_lex_hash.cc lex.h
sql_yacc.cc: sql_yacc.yy
sql_yacc.h: sql_yacc.yy
-sql_yacc.o: sql_yacc.cc sql_yacc.h
+sql_yacc.o: sql_yacc.cc sql_yacc.h $(noinst_HEADERS)
@echo "Note: The following compile may take a long time."
@echo "If it fails, re-run configure with --with-low-memory"
$(CXXCOMPILE) $(LM_CFLAGS) -c $<