radare2/sys/tiny.sh

26 lines
458 B
Bash
Raw Normal View History

2014-12-03 15:27:11 +00:00
#!/bin/sh
# find root
2015-06-17 02:39:19 +00:00
cd "$(dirname "$PWD/$0")" ; cd ..
2014-12-03 15:27:11 +00:00
#TODO: add support for ccache
# XXX. fails with >1
[ -z "${MAKE_JOBS}" ] && MAKE_JOBS=8
OLD_LDFLAGS="${LDFLAGS}"
unset LDFLAGS
export CC="emcc --ignore-dynamic-linking"
export AR="emar"
CFGFLAGS="--prefix=/usr"
2014-12-03 15:27:11 +00:00
make mrproper
cp -f plugins.tiny.cfg plugins.cfg
./configure-plugins
2015-06-17 02:39:19 +00:00
# shellcheck disable=SC2086
2014-12-03 15:27:11 +00:00
./configure ${CFGFLAGS} && \
make -s -j ${MAKE_JOBS} DEBUG=0
2015-06-17 02:39:19 +00:00
LDFLAGS="${OLD_LDFLAGS}"