radare2/sys/tiny.sh

26 lines
475 B
Bash
Raw Normal View History

2014-12-03 16:27:11 +01:00
#!/bin/sh
# find root
2015-06-16 22:39:19 -04:00
cd "$(dirname "$PWD/$0")" ; cd ..
2014-12-03 16:27:11 +01: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 16:27:11 +01:00
make mrproper
cp -f dist/plugins-cfg/plugins.tiny.cfg plugins.cfg
2014-12-03 16:27:11 +01:00
./configure-plugins
2015-06-16 22:39:19 -04:00
# shellcheck disable=SC2086
2014-12-03 16:27:11 +01:00
./configure ${CFGFLAGS} && \
make -s -j ${MAKE_JOBS} DEBUG=0
2015-06-16 22:39:19 -04:00
LDFLAGS="${OLD_LDFLAGS}"