7b79ae
#!/bin/sh -f
7b79ae
# Force creating of DSO symlinks.
7b79ae
7b79ae
# If using normal root, avoid changing anything.
7b79ae
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
7b79ae
  exit 0
7b79ae
fi
7b79ae
7b79ae
/sbin/ldconfig -N -r "$RPM_BUILD_ROOT"
7b79ae
# TODO: warn if it created new symlinks and guide people.