redhat-rpm-config/SOURCES/brp-ldconfig
2021-09-10 03:51:13 +00:00

11 lines
268 B
Bash
Executable File

#!/bin/sh -f
# Force creating of DSO symlinks.
# 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"
# TODO: warn if it created new symlinks and guide people.