1 Makefile: fix cross-compiling the server
3 MySQL Makefile believes it can run code it just compiled, to
4 generate a header. This does not work for cross-compilation.
6 Instead, use a pre-installed host-version of the required tool.
8 Signed-off-by: Marcelo Gutierrez (UTN/FRH) <kuyurix@gmail.com>
10 --- mysql-5.1.70/sql/Makefile.am
11 +++ mysql-5.1.70.patch/sql/Makefile.am
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
20 # For testing of udf_example.so
22 --- mysql-5.1.70/sql/Makefile.in
23 +++ mysql-5.1.70.patch/sql/Makefile.in
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
32 # We might have some stuff not built in this build, but that we want to install