You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.8 KiB

  1. Makefile.in: fix cross compiling failed
  2. The tools/gen_test_char was invoked at build time,
  3. and it didn't work for the cross compiling, so we
  4. compile it with $BUILDCC.
  5. Remove the 'tools' dir creation, it always existed.
  6. And it caused gen_test_char unexpected rebuilt at
  7. do_install time.
  8. Upstream-Status: inappropriate [oe specific]
  9. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
  10. ---
  11. Makefile.in | 10 ++--------
  12. 1 file changed, 2 insertions(+), 8 deletions(-)
  13. Index: apr-1.5.1/Makefile.in
  14. ===================================================================
  15. --- apr-1.5.1.orig/Makefile.in
  16. +++ apr-1.5.1/Makefile.in
  17. @@ -20,7 +20,7 @@ INCDIR=./include
  18. OSDIR=$(top_srcdir)/include/arch/@OSDIR@
  19. DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@
  20. INCLUDES=-I$(INCDIR) -I$(OSDIR) -I$(DEFOSDIR) -I$(top_srcdir)/include/arch/@DEFAULT_OSDIR@ -I$(top_srcdir)/include -I$(top_srcdir)/include/private -I$(top_blddir)/include/private
  21. -
  22. +BUILDCC=gcc
  23. #
  24. # Macros for target determination
  25. #
  26. @@ -47,7 +47,6 @@ LT_VERSION = @LT_VERSION@
  27. CLEAN_TARGETS = apr-config.out apr.exp exports.c export_vars.c .make.dirs \
  28. build/apr_rules.out tools/gen_test_char@EXEEXT@ \
  29. - tools/gen_test_char.o tools/gen_test_char.lo \
  30. include/private/apr_escape_test_char.h
  31. DISTCLEAN_TARGETS = config.cache config.log config.status \
  32. include/apr.h include/arch/unix/apr_private.h \
  33. @@ -130,13 +129,8 @@ check: $(TARGET_LIB)
  34. etags:
  35. etags `find . -name '*.[ch]'`
  36. -make_tools_dir:
  37. - $(APR_MKDIR) tools
  38. -
  39. -OBJECTS_gen_test_char = tools/gen_test_char.lo $(LOCAL_LIBS)
  40. -tools/gen_test_char.lo: make_tools_dir
  41. -tools/gen_test_char@EXEEXT@: $(OBJECTS_gen_test_char)
  42. - $(LINK_PROG) $(OBJECTS_gen_test_char) $(ALL_LIBS)
  43. +tools/gen_test_char@EXEEXT@: tools/gen_test_char.c
  44. + $(BUILDCC) $(CFLAGS_FOR_BUILD) $< -o $@
  45. include/private/apr_escape_test_char.h: tools/gen_test_char@EXEEXT@
  46. $(APR_MKDIR) include/private