add PIE compiler option

This commit is contained in:
chen-jan 2023-06-07 17:18:01 +08:00
parent e981916589
commit 8a0b39e06a

View File

@ -3,7 +3,7 @@
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 0.90 Version: 0.90
Release: 8 Release: 9
Summary: Scalable, Portable and Distributed Gradient Boosting Library Summary: Scalable, Portable and Distributed Gradient Boosting Library
License: Apache-2.0 License: Apache-2.0
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_sitearch}/%{pypi_name}-*.egg-info/ %{python3_sitearch}/%{pypi_name}-*.egg-info/
%changelog %changelog
* Wed Jun 07 2023 chenchen <chen_aka_jan@163.com> - 0.90-9
- add PIE compiler option
* Sat Mar 04 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 0.90-8 * Sat Mar 04 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 0.90-8
- disable sse for loongarch64 - disable sse for loongarch64