crosstool-ng-000-makefile-recursion.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Makefile: allow recursion
  2. When crosstool-NG is used standalone, we completely avoid recursion,
  3. because the Makefile calls itself only once.
  4. But when used as the buildroot toolchain backend, there is already
  5. one level of make recursion when we first call the crosstool-NG
  6. Makefile. And when buildroot is used out-of-tree, we are already
  7. at the second level of recursion when calling the crosstool-NG
  8. Makefile.
  9. So, to cope with the situation, just get rid of the recursion test.
  10. This probably won't go upstream.
  11. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
  12. diff -du crosstool-ng-1.12.0/Makefile.in host-crosstool-ng-1.12.0/Makefile.in
  13. --- crosstool-ng-1.12.0/Makefile.in 2011-08-01 01:21:34.000000000 +0200
  14. +++ host-crosstool-ng-1.12.0/Makefile.in 2011-08-07 21:39:16.055958219 +0200
  15. @@ -101,9 +101,14 @@
  16. # level.
  17. # This has the side effect of only showing the real targets, and hiding our
  18. # internal ones. :-)
  19. -ifneq ($(MAKELEVEL),0)
  20. -$(error Recursion detected, bailing out...)
  21. -endif
  22. +#
  23. +# NB: For buildroot, this has no importance:
  24. +# - crosstool-NG should never ever be called manually
  25. +# - thus auto-completion would never ever be attempted
  26. +# - so we shouldn't have to detect it
  27. +#ifneq ($(MAKELEVEL),0)
  28. +#$(error Recursion detected, bailing out...)
  29. +#endif
  30. MAKEFLAGS += $(CT_MAKEFLAGS)
  31. build install clean distclean uninstall: