summaryrefslogtreecommitdiff
path: root/fix-brp-ldconfig-riscv-default-library-directory.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-29 11:09:34 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-29 11:09:34 +0000
commitc22cb56acddf5bc4147f60908d5ebd770a079070 (patch)
tree302eb716e7d6c4b9c514cf5cd9575b5a347fe220 /fix-brp-ldconfig-riscv-default-library-directory.patch
parentb28db8b7389e86a8b2a424f4851ecf7714373516 (diff)
automatic import of openEuler-rpm-config
Diffstat (limited to 'fix-brp-ldconfig-riscv-default-library-directory.patch')
-rw-r--r--fix-brp-ldconfig-riscv-default-library-directory.patch15
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