Packages: hardening flags for rpm.
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
%define unit_version %%UNIT_VERSION%%
|
||||
%define unit_release %%UNIT_RELEASE%%%{?dist}.ngx
|
||||
|
||||
%define CC_OPT %{optflags}
|
||||
|
||||
%define CONFIGURE_ARGS $(echo "%%CONFIGURE_ARGS%%")
|
||||
|
||||
Name: %%NAME%%
|
||||
@@ -50,13 +52,15 @@ tar --strip-components=1 -zxf %{SOURCE0}
|
||||
./configure \
|
||||
%{CONFIGURE_ARGS} \
|
||||
--modules=%{_libdir}/unit/debug-modules \
|
||||
--cc-opt="%{CC_OPT}" \
|
||||
--debug
|
||||
./configure %%MODULE_CONFARGS%%
|
||||
make %%MODULE_MAKEARGS%%
|
||||
%{__mv} build build-debug
|
||||
./configure \
|
||||
%{CONFIGURE_ARGS} \
|
||||
--modules=%{_libdir}/unit/modules
|
||||
--modules=%{_libdir}/unit/modules \
|
||||
--cc-opt="%{CC_OPT}"
|
||||
./configure %%MODULE_CONFARGS%%
|
||||
make %%MODULE_MAKEARGS%%
|
||||
|
||||
|
||||
Reference in New Issue
Block a user