Strip and for static linking on binr/ with sys/static.sh

This commit is contained in:
pancake 2015-04-09 23:36:18 +02:00
parent 6af4f17f6d
commit 128e894eca

View File

@ -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