0004-Fix-gen_lex_hash-execution.patch 1.0 KB

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