2018-01-25 19:26:12 +00:00
|
|
|
#!/bin/sh -efu
|
|
|
|
# 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
|
|
|
|
|
2018-12-17 14:16:25 +00:00
|
|
|
# Create an empty config file for ldconfig to shut up a warning
|
|
|
|
config=$(mktemp -p "$RPM_BUILD_ROOT")
|
|
|
|
/sbin/ldconfig -f $(basename "$config") -N -r "$RPM_BUILD_ROOT"
|
|
|
|
rm -f "$config"
|
2018-01-25 19:26:12 +00:00
|
|
|
# TODO: warn if it created new symlinks and guide people.
|