From 9ab1ebc738dd1671d05a302b7da79b25307d8e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Uhliarik?= Date: Wed, 31 Jul 2024 17:53:10 +0200 Subject: [PATCH] Compile perl module with -O2 optimalization --- 0005-Compile-perl-module-with-O2.patch | 25 +++++++++++++++++++++++++ nginx.spec | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 0005-Compile-perl-module-with-O2.patch diff --git a/0005-Compile-perl-module-with-O2.patch b/0005-Compile-perl-module-with-O2.patch new file mode 100644 index 0000000..d4c5c36 --- /dev/null +++ b/0005-Compile-perl-module-with-O2.patch @@ -0,0 +1,25 @@ +From 1d10021f057d2047a044078a6af8e27af790ddec Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Lubo=C5=A1=20Uhliarik?= +Date: Wed, 31 Jul 2024 17:47:10 +0200 +Subject: [PATCH] Compile perl module with O2 + +--- + src/http/modules/perl/Makefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/http/modules/perl/Makefile.PL b/src/http/modules/perl/Makefile.PL +index 7edadcb..2ebb7c4 100644 +--- a/src/http/modules/perl/Makefile.PL ++++ b/src/http/modules/perl/Makefile.PL +@@ -14,7 +14,7 @@ WriteMakefile( + AUTHOR => 'Igor Sysoev', + + CCFLAGS => "$ENV{NGX_PM_CFLAGS}", +- OPTIMIZE => '-O', ++ OPTIMIZE => '-O2', + + LDDLFLAGS => "$ENV{NGX_PM_LDFLAGS}", + +-- +2.44.0 + diff --git a/nginx.spec b/nginx.spec index 956a93f..90cd81b 100644 --- a/nginx.spec +++ b/nginx.spec @@ -103,6 +103,9 @@ Patch2: 0003-Add-SSL-passphrase-dialog.patch # downstream patch - Disable ENGINE support by default for F41+ Patch3: 0004-Disable-ENGINE-support.patch +# downstream patch - Compile perl module with O2 +Patch4: 0005-Compile-perl-module-with-O2.patch + BuildRequires: make BuildRequires: gcc BuildRequires: gnupg2