2013-09-07 00:20:38 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# find root
|
|
|
|
cd `dirname $PWD/$0` ; cd ..
|
|
|
|
#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"
|
|
|
|
|
2015-10-22 13:42:19 +00:00
|
|
|
CFGFLAGS="./configure --prefix=/usr --disable-debugger --with-compiler=emscripten --without-pic --with-nonpic"
|
2013-09-07 00:20:38 +00:00
|
|
|
|
|
|
|
make mrproper
|
2013-09-15 21:57:22 +00:00
|
|
|
cp -f plugins.emscripten.cfg plugins.cfg
|
|
|
|
./configure-plugins
|
2013-09-07 00:20:38 +00:00
|
|
|
|
|
|
|
./configure ${CFGFLAGS} --host=emscripten && \
|
|
|
|
make -s -j ${MAKE_JOBS} DEBUG=0
|