From d68770f6939ab160ff27ec4e65ccc88cd3677bd0 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 18 Sep 2024 07:06:26 +0000 Subject: automatic import of openEuler-rpm-config --- brp-ldconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 brp-ldconfig (limited to 'brp-ldconfig') diff --git a/brp-ldconfig b/brp-ldconfig new file mode 100755 index 0000000..7b2fb15 --- /dev/null +++ b/brp-ldconfig @@ -0,0 +1,16 @@ +#!/bin/sh -efu + +# If using normal root, avoid changing anything. +if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then + 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 -- cgit v1.2.3