From f663832b1352dba424538f2602e37ca8eb77828b Mon Sep 17 00:00:00 2001 From: chen-jan Date: Tue, 6 Jun 2023 15:44:34 +0800 Subject: [PATCH] add PIE compiler option (cherry picked from commit a1f6aad616c946c58b10860ffbfd67564f833cbf) --- python-xgboost.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-xgboost.spec b/python-xgboost.spec index 7c01bb9..0a44077 100644 --- a/python-xgboost.spec +++ b/python-xgboost.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 0.90 -Release: 5 +Release: 6 Summary: Scalable, Portable and Distributed Gradient Boosting Library License: Apache-2 URL: https://github.com/dmlc/xgboost @@ -41,6 +41,7 @@ Summary: %{summary} %build pushd %{pypi_name} +sed -i "s/(PLUGIN_CFLAGS)/(PLUGIN_CFLAGS) -fPIE -pie/g" Makefile %make_build popd %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/ %changelog +* Tue Jun 06 2023 chenchen - 0.90-6 +- add PIE compiler option + * Thu Nov 17 2022 caodongxia - 0.90-5 - Replace openEuler with vendor macro -- Gitee