CentOS7/RHEL7: remove unneeded ld option. Since the addition of dynamic modules in 1.9.11 -Wl,-E is automatically added where supported, so there is no need to specify it explicitely.
diff --git a/rpm/SPECS/nginx.spec b/rpm/SPECS/nginx.spec index 00131a4..8cd93e1 100644 --- a/rpm/SPECS/nginx.spec +++ b/rpm/SPECS/nginx.spec
@@ -33,7 +33,6 @@ %if 0%{?rhel} == 7 %define _group System Environment/Daemons -%define perlldopts --with-ld-opt="-Wl,-E" %define epoch 1 %define with_http2 1 Epoch: %{epoch} @@ -221,7 +220,6 @@ %build ./configure %{COMMON_CONFIGURE_ARGS} \ --with-cc-opt="%{WITH_CC_OPT}" \ - %{?perlldopts} \ --with-debug make %{?_smp_mflags} %{__mv} %{bdir}/objs/nginx \ @@ -239,8 +237,7 @@ %{__mv} %{bdir}/objs/ngx_http_js_module.so \ %{bdir}/objs/ngx_http_js_module-debug.so ./configure %{COMMON_CONFIGURE_ARGS} \ - --with-cc-opt="%{WITH_CC_OPT}" \ - %{?perlldopts} + --with-cc-opt="%{WITH_CC_OPT}" make %{?_smp_mflags} %install