!53 GOMP开关添加后,导致rpmbuild编译某些包的时候只是用单CPU编译
From: @solarhu Reviewed-by: @licihua Signed-off-by: @licihua
This commit is contained in:
commit
db900af507
@ -9,8 +9,9 @@
|
||||
#PURPOSE.
|
||||
#See the Mulan PSL v2 for more details.
|
||||
|
||||
CPUNO=`cat /proc/cpuinfo|grep processor|wc -l`
|
||||
export GOMP_CPU_AFFINITY=0-$[CPUNO - 1]
|
||||
#Disable for GOMP issue with rpmbuild
|
||||
#CPUNO=`cat /proc/cpuinfo|grep processor|wc -l`
|
||||
#export GOMP_CPU_AFFINITY=0-$[CPUNO - 1]
|
||||
|
||||
sysctl -w vm.min_free_kbytes=112640 &> /dev/null
|
||||
sysctl -w vm.dirty_ratio=60 &> /dev/null
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
%define dist_release_version 8
|
||||
%define generic_version 20.03
|
||||
%define generic_patch_level LTS
|
||||
%define generic_release 38
|
||||
%define generic_release 39
|
||||
%define builtin_release_version 1.0
|
||||
|
||||
%define current_arch %{_arch}
|
||||
@ -169,6 +169,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%config(noreplace) /root/.cshrc
|
||||
|
||||
%changelog
|
||||
* Tue May 18 2021 solar.hu <solar.hu@foxmail.com> - 1.0-39
|
||||
- Disable for GOMP issue with rpmbuild
|
||||
|
||||
* Thu Jan 7 2020 shenyangyang <shenyangyang4@huawei.com> - 1.0-38
|
||||
- add %{product_family}-rootfiles package that contains the basic
|
||||
.bash* config for root user
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user