aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc-2.10.1/rulesfix.patch
blob: 585bb625b2813c0ee8906824088f09f102188b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Upstream-Status: Inappropriate [not used]

Index: glibc-2.9/Makerules
===================================================================
--- glibc-2.9.orig/Makerules	2009-09-14 16:39:21.000000000 +0100
+++ glibc-2.9/Makerules	2009-09-14 16:39:50.000000000 +0100
@@ -173,6 +173,8 @@
 # it's used in sysd-rules, below.
 $(common-objpfx)%.h $(common-objpfx)%.h.d: $(..)scripts/gen-as-const.awk \
 					   %.sym $(common-before-compile)
+	rm -f $(@:.h=.h.d)
+	rm -f $(@:.h.d=.h)
 	$(AWK) -f $< $(filter %.sym,$^) \
 	| $(CC) -S -o $(@:.h.d=.h)T3 $(CFLAGS) $(CPPFLAGS) -x c - \
 		-MD -MP -MF $(@:.h=.h.d)T -MT '$(@:.h=.h.d) $(@:.h.d=.h)'