summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/stress-ng/stress-ng_0.15.02.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-01-23 09:41:56 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-24 22:06:51 +0000
commitb0e00ca9bd726709d0fe95f26ce3125784cd0b86 (patch)
treeb5e8dc65f9dd771c16faebc5f6f05cf222dfe039 /meta/recipes-extended/stress-ng/stress-ng_0.15.02.bb
parentd2066f99d00f68a67c148e09ffdaadc37ada8563 (diff)
downloadpoky-b0e00ca9bd726709d0fe95f26ce3125784cd0b86.tar.gz
stress-ng: Robustify test-float test
Latest compilers are able to figure out that whole code can be optmized away when CFLAGS has -O2 or more agressive optimizations. In order to ensure the test is doing the right thing, make the variables global so compiler is not able to optimize it away. This fixes build on x86 especially when using clang compiler (From OE-Core rev: e9c4017982a5556580d24e72e74c4d5a879ff11c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/stress-ng/stress-ng_0.15.02.bb')
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng_0.15.02.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.15.02.bb b/meta/recipes-extended/stress-ng/stress-ng_0.15.02.bb
index c554bb403e..75400f589e 100644
--- a/meta/recipes-extended/stress-ng/stress-ng_0.15.02.bb
+++ b/meta/recipes-extended/stress-ng/stress-ng_0.15.02.bb
@@ -6,6 +6,7 @@ LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7 7
8SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master \ 8SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master \
9 file://0001-test-float-Make-variables-global.patch \
9 file://0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch" 10 file://0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch"
10SRCREV = "4164f6842c712c2d9a13619c3c70fd35d8d02cdb" 11SRCREV = "4164f6842c712c2d9a13619c3c70fd35d8d02cdb"
11S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"