Run ldconfig stage after install and symstall

- Fixes non-standard path installs on GNU/Linux
This commit is contained in:
pancake 2013-06-17 01:39:49 +02:00
parent d04ddbb309
commit febace8033
2 changed files with 10 additions and 0 deletions

View File

@ -98,6 +98,7 @@ install: install-doc install-man install-www
done
mkdir -p ${DESTDIR}/${LIBDIR}/radare2/${VERSION}/hud
cp -f shlr/hud/main ${DESTDIR}/${LIBDIR}/radare2/${VERSION}/hud/
sys/ldconfig.sh
install-www:
rm -rf ${DESTDIR}/${WWWROOT}
@ -128,6 +129,7 @@ symstall install-symlink: install-man-symlink install-doc-symlink install-pkgcon
done
mkdir -p ${DLIBDIR}/radare2/${VERSION}/hud
ln -fs ${PWD}/shlr/hud/main ${DLIBDIR}/radare2/${VERSION}/hud/main
sys/ldconfig.sh
deinstall uninstall:
cd libr && ${MAKE} uninstall PARENT=1 PREFIX=${PREFIX} DESTDIR=${DESTDIR}

8
sys/ldconfig.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
LD=/etc/ld.so.conf.d
type ldconfig > /dev/null 2>&1
if [ $? = 0 ]; then
mkdir -p $LD
awk -F= '/^LIBDIR/{print $2}' config-user.mk > $LD/radare.conf
ldconfig
fi