summaryrefslogtreecommitdiff
path: root/file-reorganize.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-08 15:29:42 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-08 15:29:42 +0000
commit178034e25653af1e53e168a6c6d67dc633731e95 (patch)
treea2c319b6cf6102f3257fc568c05d58487d8c3881 /file-reorganize.spec
parent7ee50df154dc3b82c6fd0f33edfe1410fa9e92c7 (diff)
automatic import of file-reorganize
Diffstat (limited to 'file-reorganize.spec')
-rw-r--r--file-reorganize.spec4
1 files changed, 3 insertions, 1 deletions
diff --git a/file-reorganize.spec b/file-reorganize.spec
index af2c446..656877e 100644
--- a/file-reorganize.spec
+++ b/file-reorganize.spec
@@ -19,7 +19,7 @@ BuildRequires: wget, dnf-plugins-core, binutils, glibc-devel, gcc-c++, openssl
# 安装cangjie
plt=`uname -m`
-if [[ $plt -eq "x86_64" ]]; then
+if [[ $plt == "x86_64" ]]; then
wget -O Cangjie-0.53.13-linux_x64.tar.gz "https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_x64.tar.gz&objectKey=6719f1eb3af6947e3c6af327"
tar -xzvf Cangjie-0.53.13-linux_x64.tar.gz
source cangjie/envsetup.sh
@@ -31,6 +31,8 @@ fi
%build
source %{_builddir}/%{name}-%{version}/cangjie/envsetup.sh
+cp /usr/lib/gcc/x86_64-openEuler-linux/12/crtbeginS.o %{_builddir}/%{name}-%{version}
+cp /usr/lib/gcc/x86_64-openEuler-linux/12/crtendS.o %{_builddir}/%{name}-%{version}
cjpm build
%install