diff options
author | John Williams <john.williams@xilinx.com> | 2013-03-11 22:50:12 -0700 |
---|---|---|
committer | John Williams <john.williams@xilinx.com> | 2013-03-11 22:50:12 -0700 |
commit | c857e94fbfc6228eb62415c816b5b81b9806c2f5 (patch) | |
tree | fe926b50f81ee1f8f7809e2e4f027c16ff0d96ed | |
parent | aa01c6856cb9f432a22fbf56d2965e8ba95d991d (diff) | |
download | meta-xilinx-c857e94fbfc6228eb62415c816b5b81b9806c2f5.tar.gz |
Remove -wno-vla to build on ancient RHEL
Signed-off-by: John Williams <john.williams@xilinx.com>
-rw-r--r-- | recipes-devtools/dpkg/dpkg_1.15.8.7.bbappend | 6 | ||||
-rw-r--r-- | recipes-devtools/dpkg/files/no-vla-warning.patch | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/recipes-devtools/dpkg/dpkg_1.15.8.7.bbappend b/recipes-devtools/dpkg/dpkg_1.15.8.7.bbappend new file mode 100644 index 00000000..dc66de5f --- /dev/null +++ b/recipes-devtools/dpkg/dpkg_1.15.8.7.bbappend | |||
@@ -0,0 +1,6 @@ | |||
1 | PRINC = "1" | ||
2 | |||
3 | FILESEXTRAPATHS_prepend := "${THISDIR}/files" | ||
4 | |||
5 | SRC_URI += "file://no-vla-warning.patch" | ||
6 | |||
diff --git a/recipes-devtools/dpkg/files/no-vla-warning.patch b/recipes-devtools/dpkg/files/no-vla-warning.patch new file mode 100644 index 00000000..1539d8de --- /dev/null +++ b/recipes-devtools/dpkg/files/no-vla-warning.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | diff -Naur dpkg-1.15.8.7/m4/dpkg-compiler.m4 tmp/m4/dpkg-compiler.m4 | ||
2 | --- dpkg-1.15.8.7/m4/dpkg-compiler.m4 2010-12-19 17:25:34.000000000 -0800 | ||
3 | +++ tmp/m4/dpkg-compiler.m4 2013-03-11 22:27:10.000000000 -0700 | ||
4 | @@ -13,7 +13,7 @@ | ||
5 | |||
6 | WFLAGS="-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers \ | ||
7 | -Wmissing-declarations -Wmissing-format-attribute \ | ||
8 | - -Wvla -Winit-self -Wwrite-strings -Wcast-align -Wshadow" | ||
9 | + -Winit-self -Wwrite-strings -Wcast-align -Wshadow" | ||
10 | WCFLAGS="-Wdeclaration-after-statement -Wnested-externs -Wbad-function-cast \ | ||
11 | -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition" | ||
12 | # Temporarily here until #542031 gets fixed in ncurses | ||