Blame SOURCES/brp-ldconfig

396caf
#!/bin/sh -efu
396caf
# Force creating of DSO symlinks.
396caf
396caf
# If using normal root, avoid changing anything.
396caf
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
396caf
  exit 0
396caf
fi
396caf
396caf
# Create an empty config file for ldconfig to shut up a warning
396caf
config=$(mktemp -p "$RPM_BUILD_ROOT")
396caf
/sbin/ldconfig -f $(basename "$config") -N -r "$RPM_BUILD_ROOT"
396caf
rm -f "$config"
396caf
# TODO: warn if it created new symlinks and guide people.