summaryrefslogtreecommitdiffstats
path: root/package/crosstool-ng/crosstool-ng-000-makefile-recursion.patch
blob: b875e3f1a06574ebf54806e33baa85dbd4b9c671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Makefile: allow recursion

When crosstool-NG is used standalone, we completely avoid recursion,
because the Makefile calls itself only once.

But when used as the buildroot toolchain backend, there is already
one level of make recursion when we first call the crosstool-NG
Makefile. And when buildroot is used out-of-tree, we are already
at the second level of recursion when calling the crosstool-NG
Makefile.

So, to cope with the situation, just get rid of the recursion test.

This probably won't go upstream.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

diff -du crosstool-ng-1.12.0/Makefile.in host-crosstool-ng-1.12.0/Makefile.in
--- crosstool-ng-1.12.0/Makefile.in     2011-08-01 01:21:34.000000000 +0200
+++ host-crosstool-ng-1.12.0/Makefile.in        2011-08-07 21:39:16.055958219 +0200
@@ -101,9 +101,14 @@
 # level.
 # This has the side effect of only showing the real targets, and hiding our
 # internal ones. :-)
-ifneq ($(MAKELEVEL),0)
-$(error Recursion detected, bailing out...)
-endif
+#
+# NB: For buildroot, this has no importance:
+# - crosstool-NG should never ever be called manually
+# - thus auto-completion would never ever be attempted
+# - so we shouldn't have to detect it
+#ifneq ($(MAKELEVEL),0)
+#$(error Recursion detected, bailing out...)
+#endif
 
 MAKEFLAGS += $(CT_MAKEFLAGS)
 build install clean distclean uninstall:
OpenPOWER on IntegriCloud