mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 13:19:54 +00:00
Run ldconfig stage after install and symstall
- Fixes non-standard path installs on GNU/Linux
This commit is contained in:
parent
d04ddbb309
commit
febace8033
2
Makefile
2
Makefile
@ -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
8
sys/ldconfig.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user