1Makefile: fix cross-compiling the server 2 3MySQL Makefile believes it can run code it just compiled, to 4generate a header. This does not work for cross-compilation. 5 6Instead, use a pre-installed host-version of the required tool. 7 8Signed-off-by: Marcelo Gutierrez (UTN/FRH) <kuyurix@gmail.com> 9 10--- mysql-5.1.70/sql/Makefile.am 11+++ mysql-5.1.70.patch/sql/Makefile.am 12@@ -177,7 +177,7 @@ 13 # this avoid the rebuild of the built files in a source dist 14 lex_hash.h: gen_lex_hash.cc lex.h 15 $(MAKE) $(AM_MAKEFLAGS) gen_lex_hash$(EXEEXT) 16- ./gen_lex_hash$(EXEEXT) > $@-t 17+ gen_lex_hash$(EXEEXT) > $@-t 18 $(MV) $@-t $@ 19 20 # For testing of udf_example.so 21 22--- mysql-5.1.70/sql/Makefile.in 23+++ mysql-5.1.70.patch/sql/Makefile.in 24@@ -1310,7 +1310,7 @@ 25 # this avoid the rebuild of the built files in a source dist 26 lex_hash.h: gen_lex_hash.cc lex.h 27 $(MAKE) $(AM_MAKEFLAGS) gen_lex_hash$(EXEEXT) 28- ./gen_lex_hash$(EXEEXT) > $@-t 29+ gen_lex_hash$(EXEEXT) > $@-t 30 $(MV) $@-t $@ 31 32 # We might have some stuff not built in this build, but that we want to install 33