diff --git a/stress-ng-Add-fPIC-to-Makefile.patch b/stress-ng-Add-fPIC-to-Makefile.patch new file mode 100644 index 0000000..ed86a64 --- /dev/null +++ b/stress-ng-Add-fPIC-to-Makefile.patch @@ -0,0 +1,28 @@ +From 6df5cc75c900b6549c342927ff41a56f816b4169 Mon Sep 17 00:00:00 2001 +From: John Kacur +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 +--- + 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 + diff --git a/stress-ng.spec b/stress-ng.spec index 4aa7e88..563e1fe 100644 --- a/stress-ng.spec +++ b/stress-ng.spec @@ -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