Rebase to stress-ng-0.19.03 upstream
Resolves: RHEL-86708 Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
parent
a0087680aa
commit
13bbc8e80f
28
stress-ng-Add-fPIC-to-Makefile.patch
Normal file
28
stress-ng-Add-fPIC-to-Makefile.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 6df5cc75c900b6549c342927ff41a56f816b4169 Mon Sep 17 00:00:00 2001
|
||||
From: John Kacur <jkacur@redhat.com>
|
||||
Date: Fri, 15 Aug 2025 13:10:10 -0400
|
||||
Subject: [PATCH] stress-ng: Add fPIC to Makefile
|
||||
|
||||
Add -fPIC to Makefile
|
||||
|
||||
Signed-off-by: John Kacur <jkacur@redhat.com>
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 6a1128ace84f..6fb61975be88 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -134,7 +134,7 @@ endif
|
||||
MACHINE := $(shell make -f Makefile.machine)
|
||||
ifneq ($(PRESERVE_CFLAGS),1)
|
||||
ifneq ($(MACHINE),$(filter $(MACHINE),alpha hppa ia64))
|
||||
-flag = -Wformat -fstack-protector-strong -Werror=format-security
|
||||
+flag = -Wformat -fstack-protector-strong -Werror=format-security -fPIC
|
||||
#
|
||||
# add -D_FORTIFY_SOURCE=2 if _FORTIFY_SOURCE is not already defined
|
||||
#
|
||||
--
|
||||
2.49.0
|
||||
|
||||
@ -7,6 +7,7 @@ License: GPL-2.0-or-later
|
||||
URL: https://github.com/ColinIanKing/stress-ng
|
||||
Source0: https://github.com/ColinIanKing/stress-ng/archive/V%{version}/%{name}-%{version}.tar.xz
|
||||
|
||||
ExcludeArch: s390 s390x i686
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: g++
|
||||
@ -27,6 +28,7 @@ BuildRequires: lksctp-tools-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
# Patches
|
||||
Patch1: stress-ng-Add-fPIC-to-Makefile.patch
|
||||
|
||||
%description
|
||||
Stress test a computer system in various ways. It was designed to exercise
|
||||
|
||||
Loading…
Reference in New Issue
Block a user