qt: ensure that target dir exists before installing there
[buildroot-gz.git] / package / mysql / mysql-0004-Fix-gen_lex_hash-execution.patch
blobb91ed4fef9073d4ba9c7036c71deb7a2922b4b55
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
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 $@
20 # For testing of udf_example.so
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 $@
32 # We might have some stuff not built in this build, but that we want to install