Skip to contentSkip to conversation

fix make 3.80 incompatibility of 22985:d8ea33e7af7e

PATCH New Jan Beulich 1 participant 1 message Mar 9, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix make 3.80 incompatibility of 22985:d8ea33e7af7e

make 3.80 complains about a missing endif if the invocation of cc-ver-check is itself wrapped in a conditional. Steal how the tools deal with that.

xen/arch/x86/Rules.mk +2 -3
@@ -50,7 +50,6 @@ x86_32 := n
 x86_64 := y
 endif
 
-ifeq ($(gcc),y)
 # Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
-$(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")
-endif
+check-$(gcc) = $(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")
+$(eval $(check-y))

make 3.80 complains about a missing endif if the invocation of cc-ver-check is itself wrapped in a conditional. Steal how the tools deal with that.

xen/arch/x86/Rules.mk +2 -3
@@ -50,7 +50,6 @@ x86_32 := n
 x86_64 := y
 endif
 
-ifeq ($(gcc),y)
 # Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
-$(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")
-endif
+check-$(gcc) = $(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")
+$(eval $(check-y))

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel