!17 [sync] PR-16: add PIE compiler option

From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2023-06-07 03:11:46 +00:00 committed by Gitee
commit 0793b831c1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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