Blame SOURCES/brp-ldconfig

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