mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
dpkg-compiler.m4: remove -Wvla (fix build on CentOS 5.8)
Remove the -Wvla flag from the set of compiler warning flags, since gcc on old host systems such as CentOS 5.8 doesn't support it, and it causes a build error for dpkg-native. (From OE-Core rev: 736ef878570ebe60845da88094907ad28f7b50ff) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
da93a41189
commit
a76ac78169
32
meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch
Normal file
32
meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
From e94474d805377d67c8b09664a602f20969e12b8a Mon Sep 17 00:00:00 2001
|
||||
From: Robert Yang <liezhi.yang@windriver.com>
|
||||
Date: Thu, 23 Jan 2014 04:17:23 -0500
|
||||
Subject: [PATCH] dpkg-compiler.m4: remove -Wvla
|
||||
|
||||
Remove the -Wvla flag from the set of compiler warning flags, since gcc
|
||||
on old host systems such as CentOS 5.8 doesn't support it, and it
|
||||
causes a build error for dpkg-native.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Donn Seeley <donn.seeley@windriver.com>
|
||||
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
||||
---
|
||||
m4/dpkg-compiler.m4 | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4
|
||||
index f1c760b..500b5ad 100644
|
||||
--- a/m4/dpkg-compiler.m4
|
||||
+++ b/m4/dpkg-compiler.m4
|
||||
@@ -72,7 +72,6 @@ if test "x$enable_compiler_warnings" = "xyes"; then
|
||||
DPKG_WARNING_ALL([-Wformat-security])
|
||||
DPKG_WARNING_ALL([-Wpointer-arith])
|
||||
DPKG_WARNING_ALL([-Wlogical-op])
|
||||
- DPKG_WARNING_ALL([-Wvla])
|
||||
DPKG_WARNING_ALL([-Winit-self])
|
||||
DPKG_WARNING_ALL([-Wwrite-strings])
|
||||
DPKG_WARNING_ALL([-Wcast-align])
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
@@ -11,6 +11,7 @@ SRC_URI += "file://noman.patch \
|
||||
file://arch_pm.patch \
|
||||
file://dpkg-configure.service \
|
||||
file://glibc2.5-sync_file_range.patch \
|
||||
file://no-vla-warning.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "cc25086e1e3bd9512a95f14cfe9002e1"
|
||||
|
||||
Reference in New Issue
Block a user