diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-04-12 17:19:44 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-04-13 19:21:41 -0700 |
commit | 83b283c5282cfef7e5b6339852cf126bacb82bd3 (patch) | |
tree | a7b490b6de9e7a51c93e97548494008b9f554a8b /meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb | |
parent | ee3b2e19a6fdc63155699801056d884bd6d396dd (diff) | |
download | meta-openembedded-83b283c5282cfef7e5b6339852cf126bacb82bd3.tar.gz |
opensaf: Fix build with gcc 12
Use configure logic to disable certain warnings if compiler supports
them
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb')
-rw-r--r-- | meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb b/meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb index 8ce324d30..930755d62 100644 --- a/meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb +++ b/meta-networking/recipes-daemons/opensaf/opensaf_5.22.01.bb | |||
@@ -28,6 +28,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \ | |||
28 | file://0001-immom_python-convert-to-python3.patch \ | 28 | file://0001-immom_python-convert-to-python3.patch \ |
29 | file://0001-Fix-build-with-fno-common.patch \ | 29 | file://0001-Fix-build-with-fno-common.patch \ |
30 | file://0001-Use-correct-printf-format-for-__fsblkcnt_t.patch \ | 30 | file://0001-Use-correct-printf-format-for-__fsblkcnt_t.patch \ |
31 | file://0001-include-missing-array-header.patch \ | ||
32 | file://0002-configure-Disable-selected-warnings.patch \ | ||
31 | " | 33 | " |
32 | SRC_URI[sha256sum] = "f008d53c83087ce2014c6089bc4ef08e14c1b4091298b943f4ceade1aa6bf61e" | 34 | SRC_URI[sha256sum] = "f008d53c83087ce2014c6089bc4ef08e14c1b4091298b943f4ceade1aa6bf61e" |
33 | 35 | ||
@@ -48,8 +50,8 @@ PACKAGECONFIG[plm] = "--enable-ais-plm,--disable-ais-plm,libvirt openhpi" | |||
48 | 50 | ||
49 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" | 51 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" |
50 | 52 | ||
51 | CPPFLAGS += "-Wno-error=stringop-overflow= -Wno-error=stringop-truncation" | 53 | CPPFLAGS += "-Wno-error" |
52 | CXXFLAGS += "-Wno-error=stringop-overflow= -Wno-error=stringop-truncation -Wno-error=format-truncation=" | 54 | CXXFLAGS += "-Wno-error" |
53 | LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed" | 55 | LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed" |
54 | 56 | ||
55 | do_install:append() { | 57 | do_install:append() { |