aboutsummaryrefslogtreecommitdiff
path: root/recipes/xorg-util/util-macros-1.2.1/cross-compiler-for-checking.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/xorg-util/util-macros-1.2.1/cross-compiler-for-checking.patch')
-rw-r--r--recipes/xorg-util/util-macros-1.2.1/cross-compiler-for-checking.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/xorg-util/util-macros-1.2.1/cross-compiler-for-checking.patch b/recipes/xorg-util/util-macros-1.2.1/cross-compiler-for-checking.patch
new file mode 100644
index 0000000..c646fff
--- /dev/null
+++ b/recipes/xorg-util/util-macros-1.2.1/cross-compiler-for-checking.patch
@@ -0,0 +1,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"
+ ;;