diff options
| author | Randy MacLeod <Randy.MacLeod@windriver.com> | 2013-04-30 17:28:34 -0400 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@windriver.com> | 2013-04-30 16:49:02 -0500 |
| commit | 41a695541670036ce69f3d9defedb20c5b4116b3 (patch) | |
| tree | a309a7791164e9cafa18465123943b466f4c31ab | |
| parent | 98c210142de8b444b7cc7cc0fe4e7cf6cf3e22bf (diff) | |
| download | meta-selinux-41a695541670036ce69f3d9defedb20c5b4116b3.tar.gz | |
libselinux: drop flag: -Wno-unused-but-set-variable
The flag: -Wno-unused-but-set-variable isn't supported on older
versions of gcc such as gcc-4.1.2 which is the native compiler for
RHEL-5.9. I've droped this warning flag for both the native and target builds.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
| -rw-r--r-- | recipes-security/selinux/libselinux/libselinux-drop-Wno-unused-but-set-variable.patch | 17 | ||||
| -rw-r--r-- | recipes-security/selinux/libselinux_2.1.12.bb | 9 |
2 files changed, 23 insertions, 3 deletions
diff --git a/recipes-security/selinux/libselinux/libselinux-drop-Wno-unused-but-set-variable.patch b/recipes-security/selinux/libselinux/libselinux-drop-Wno-unused-but-set-variable.patch new file mode 100644 index 0000000..9deb67d --- /dev/null +++ b/recipes-security/selinux/libselinux/libselinux-drop-Wno-unused-but-set-variable.patch | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | Subject: libselinux: drop flag: -Wno-unused-but-set-variable | ||
| 2 | |||
| 3 | Upstream status: inappropriate (older compilers only). | ||
| 4 | |||
| 5 | Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> | ||
| 6 | |||
| 7 | --- libselinux-2.1.12.orig/src/Makefile | ||
| 8 | +++ libselinux-2.1.12/src/Makefile | ||
| 9 | @@ -79,7 +79,7 @@ | ||
| 10 | |||
| 11 | override CFLAGS += -I../include -I$(INCLUDEDIR) -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(EMFLAGS) | ||
| 12 | |||
| 13 | -SWIG_CFLAGS += -Wno-error -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter \ | ||
| 14 | +SWIG_CFLAGS += -Wno-error -Wno-unused-variable -Wno-unused-parameter \ | ||
| 15 | -Wno-shadow -Wno-uninitialized -Wno-missing-prototypes -Wno-missing-declarations | ||
| 16 | |||
| 17 | RANLIB=ranlib | ||
diff --git a/recipes-security/selinux/libselinux_2.1.12.bb b/recipes-security/selinux/libselinux_2.1.12.bb index 34f9c2c..d881534 100644 --- a/recipes-security/selinux/libselinux_2.1.12.bb +++ b/recipes-security/selinux/libselinux_2.1.12.bb | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | PR = "r0" | 1 | PR = "r1" |
| 2 | 2 | ||
| 3 | include selinux_20120924.inc | 3 | include selinux_20120924.inc |
| 4 | include ${BPN}.inc | 4 | include ${BPN}.inc |
| @@ -8,5 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0" | |||
| 8 | SRC_URI[md5sum] = "73270f384a032fad34b5fe075fa05ce2" | 8 | SRC_URI[md5sum] = "73270f384a032fad34b5fe075fa05ce2" |
| 9 | SRC_URI[sha256sum] = "8dad879380e0ce1e4ab67195a08f6052c1396493bcb12fe92a033f49f7dbca9e" | 9 | SRC_URI[sha256sum] = "8dad879380e0ce1e4ab67195a08f6052c1396493bcb12fe92a033f49f7dbca9e" |
| 10 | 10 | ||
| 11 | SRC_URI += "file://libselinux-fix-init-load-policy.patch \ | 11 | SRC_URI += "\ |
| 12 | file://libselinux-pcre-link-order.patch" | 12 | file://libselinux-fix-init-load-policy.patch \ |
| 13 | file://libselinux-pcre-link-order.patch \ | ||
| 14 | file://libselinux-drop-Wno-unused-but-set-variable.patch \ | ||
| 15 | " | ||
