add PIE compiler option
(cherry picked from commit a1f6aad616c946c58b10860ffbfd67564f833cbf)
This commit is contained in:
parent
f44aee5921
commit
171c8fc1ce
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.90
|
Version: 0.90
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: Scalable, Portable and Distributed Gradient Boosting Library
|
Summary: Scalable, Portable and Distributed Gradient Boosting Library
|
||||||
License: Apache-2
|
License: Apache-2
|
||||||
URL: https://github.com/dmlc/xgboost
|
URL: https://github.com/dmlc/xgboost
|
||||||
@ -41,6 +41,7 @@ Summary: %{summary}
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
pushd %{pypi_name}
|
pushd %{pypi_name}
|
||||||
|
sed -i "s/(PLUGIN_CFLAGS)/(PLUGIN_CFLAGS) -fPIE -pie/g" Makefile
|
||||||
%make_build
|
%make_build
|
||||||
popd
|
popd
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -65,6 +66,9 @@ find %{buildroot} -name "*.py" -exec sed -i -r 's!/usr/bin/python(\s|$)!/usr/bin
|
|||||||
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 06 2023 chenchen <chen_aka_jan@163.com> - 0.90-6
|
||||||
|
- add PIE compiler option
|
||||||
|
|
||||||
* Thu Nov 17 2022 caodongxia <caodongxia@h-partners.com> - 0.90-5
|
* Thu Nov 17 2022 caodongxia <caodongxia@h-partners.com> - 0.90-5
|
||||||
- Replace openEuler with vendor macro
|
- Replace openEuler with vendor macro
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user