From 8a0b39e06aac7651517bf345260bb4bfa7acbda8 Mon Sep 17 00:00:00 2001 From: chen-jan Date: Wed, 7 Jun 2023 17:18:01 +0800 Subject: [PATCH] add PIE compiler option --- python-xgboost.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-xgboost.spec b/python-xgboost.spec index 8ae9fb7..48f652e 100644 --- a/python-xgboost.spec +++ b/python-xgboost.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 0.90 -Release: 8 +Release: 9 Summary: Scalable, Portable and Distributed Gradient Boosting Library License: Apache-2.0 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_sitearch}/%{pypi_name}-*.egg-info/ %changelog +* Wed Jun 07 2023 chenchen - 0.90-9 +- add PIE compiler option + * Sat Mar 04 2023 Wenlong Zhang - 0.90-8 - disable sse for loongarch64