aboutsummaryrefslogtreecommitdiff
path: root/recipes/xorg-util/util-macros-1.2.1/cross-compiler-for-checking.patch
blob: c646ffff5b31064980ac7b9ec4879bf4a8e800d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- util-macros-1.2.1/xorg-macros.m4.in-orig	2009-06-08 13:49:09.000000000 +0200
+++ util-macros-1.2.1/xorg-macros.m4.in	2009-06-08 13:51:28.000000000 +0200
@@ -445,7 +445,7 @@
     CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
 -Wbad-function-cast"
-    case `gcc -dumpversion` in
+    case `$CC -dumpversion 2>/dev/null` in
     3.4.* | 4.*)
 	CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
 	;;