summaryrefslogtreecommitdiff
path: root/packages/mysql/mysql-4.1.10a/gen_lex_hash.patch
blob: 27bfc0f6a3d8df73983a70cce230cc20f7b10066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- mysql-4.1.4a-gamma/sql/Makefile.am~gen_lex_hash
+++ mysql-4.1.4a-gamma/sql/Makefile.am
@@ -140,9 +140,10 @@
 		@echo "If it fails, re-run configure with --with-low-memory"
 		$(CXXCOMPILE) $(LM_CFLAGS) -c $<
 
-lex_hash.h:	lex.h gen_lex_hash.cc sql_yacc.h
-		$(MAKE) gen_lex_hash$(EXEEXT)
-		./gen_lex_hash$(EXEEXT) > $@
+GEN_LEX_HASH = ./gen_lex_hash$(EXEEXT)
+		
+lex_hash.h:	lex.h gen_lex_hash$(EXEEXT) sql_yacc.h
+		$(GEN_LEX_HASH) > $@ || rm -f $@
 
 # Hack to ensure that lex_hash.h is built early
 sql_lex.o:	lex_hash.h