From c606dee78064cf84b84faf25a55cfe9ea8462f7d Mon Sep 17 00:00:00 2001 From: Yan Date: Thu, 7 May 2015 15:05:30 -0700 Subject: [PATCH] handle library paths properly --- radare2/install | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/radare2/install b/radare2/install index e2ae167..df65203 100755 --- a/radare2/install +++ b/radare2/install @@ -5,3 +5,15 @@ cd radare2/ ./configure --prefix=$(dirname $PWD) make -j $(nproc) make install +cd .. + +cd bin +for i in ???* +do + mv $i $i.real + cat < $i +#!/bin/bash +LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$PWD/../lib \$0.real +END + chmod 755 $i +done