Skip to content

Commit 2e38d04

Browse files
committed
fix: remove -march=... in configure command
1 parent 07b61fd commit 2e38d04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpmbuild/SPECS/nginx-module-fancyindex.spec.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ Nginx module to use PAM for simple http authentication.
5050
cd %{_builddir}/nginx-%{nginx_version}
5151
%if 0%{?rhel} == 10
5252
# Fix ./configure: error: invalid option "--without-engine
53-
./configure %(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@' | sed 's/--without-engine //') --add-dynamic-module=../%{mod_base_dir}-%{version}
53+
./configure %(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@' | sed -r 's/ ?-march=[^ ]+//g' | sed 's/--without-engine //') --add-dynamic-module=../%{mod_base_dir}-%{version}
5454
%else
5555
# el8 and el9
56-
./configure %(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@') --add-dynamic-module=../%{mod_base_dir}-%{version}
56+
./configure %(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@' | sed -r 's/ ?-march=[^ ]+//g') --add-dynamic-module=../%{mod_base_dir}-%{version}
5757
%endif
5858
make modules
5959

0 commit comments

Comments
 (0)