diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-23 08:50:25 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-23 08:50:25 +0000 |
commit | 8287de106c1c627906a2794637090e90d088c5cc (patch) | |
tree | 5f4f9ed56e151fa122fef773f15b0eaa93ad2ab9 /fix-brp-ldconfig-riscv-default-library-directory.patch | |
parent | f9d8d75824b707d146315257f611d876d38234f2 (diff) |
automatic import of openEuler-rpm-configopeneuler24.03_LTS
Diffstat (limited to 'fix-brp-ldconfig-riscv-default-library-directory.patch')
-rw-r--r-- | fix-brp-ldconfig-riscv-default-library-directory.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fix-brp-ldconfig-riscv-default-library-directory.patch b/fix-brp-ldconfig-riscv-default-library-directory.patch new file mode 100644 index 0000000..5a448b7 --- /dev/null +++ b/fix-brp-ldconfig-riscv-default-library-directory.patch @@ -0,0 +1,15 @@ +--- openEuler-rpm-config/brp-ldconfig 2020-08-20 17:13:06.000000000 +0800 ++++ openEuler-rpm-config/brp-ldconfig.new 2023-03-08 19:45:58.241036244 +0800 +@@ -5,4 +5,12 @@ + exit 0 + fi + ++riscv64_lp64d=0 ++if [ "$HOSTTYPE" = "riscv64" -a -e $RPM_BUILD_ROOT/usr/lib64 -a ! -e $RPM_BUILD_ROOT/usr/lib64/lp64d ]; then ++ ln -s . $RPM_BUILD_ROOT/usr/lib64/lp64d ++ riscv64_lp64d=1 ++fi + /sbin/ldconfig -N -r "$RPM_BUILD_ROOT" ++if [ $riscv64_lp64d = 1 ]; then ++ rm -f $RPM_BUILD_ROOT/usr/lib64/lp64d ++fi |