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