redhat-rpm-config/SOURCES/brp-ldconfig

11 lines
268 B
Plaintext
Raw Permalink Normal View History

2019-11-05 19:39:29 +00:00
#!/bin/sh -f
2019-05-07 13:05:19 +00:00
# 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.