mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-10 08:14:35 +00:00
![kmartin36](/assets/img/avatar_default.png)
It seems that commit 7e5f1f5851ea41f615bf956c54d4f48abfcf46ad attempted to prevent /etc/ld.so.conf.d/radare.conf from being added and ldconfig from being necessary when the user installs into /usr instead of /usr/local. This patch achieves that behaviour.
16 lines
334 B
Bash
Executable File
16 lines
334 B
Bash
Executable File
#!/bin/sh
|
|
LD=/etc/ld.so.conf.d
|
|
if test -w $LD ; then
|
|
if type ldconfig > /dev/null 2>&1 ; then
|
|
mkdir -p $LD
|
|
P=$(awk -F= '/^LIBDIR/{print $2}' config-user.mk)
|
|
D="$(dirname "$P")"
|
|
if [ /usr != "$D" ]; then
|
|
echo "$P" > "$LD/radare.conf"
|
|
# do not update symlinks to avoid r2 install issues
|
|
ldconfig -X
|
|
fi
|
|
fi
|
|
fi
|
|
exit 0
|