openEuler-rpm-config/brp-ldconfig
2020-01-13 13:27:34 +08:00

9 lines
178 B
Bash

#!/bin/sh -efu
# If using normal root, avoid changing anything.
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
exit 0
fi
/sbin/ldconfig -N -r "$RPM_BUILD_ROOT"