diff --git a/sys/static.sh b/sys/static.sh index f7e1fe4989..475e3a1c6b 100755 --- a/sys/static.sh +++ b/sys/static.sh @@ -29,3 +29,16 @@ if [ 1 = "${DOBUILD}" ]; then ./configure --prefix=$PREFIX --with-nonpic --without-pic fi ${MAKE} -j 8 +BINS="rarun2 rasm2 radare2 ragg2 rabin2 rax2 rahash2 rafind2 rasign2 r2agent radiff2" +for a in ${BINS} ; do +( +cd binr/$a +${MAKE} clean +LDFLAGS=-static ${MAKE} -j2 +strip -s $a +) +done + +rm -rf r2-static +mkdir r2-static +${MAKE} install DESTDIR=${PWD}/r2-static