diff options
author | David Barksdale <amatus@amatus.name> | 2014-10-12 17:19:16 -0500 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2014-10-12 17:19:16 -0500 |
commit | 11887215938d5964a1335bd268894a58388e0e9d (patch) | |
tree | fce1f01055d7821a7958fc877a948b468988e8c4 | |
parent | f637d6546a09f71fd2d3b74869ee767512094c89 (diff) |
ALLOW_MEMORY_GROWTH is incompatible with dlopen
Memory allocated in a plugin doesn't seem to exist in the main
module.
-rw-r--r-- | gnunet-build/packages/gnunet/gnunet/Buildrules | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gnunet-build/packages/gnunet/gnunet/Buildrules b/gnunet-build/packages/gnunet/gnunet/Buildrules index 22fcae7..719794a 100644 --- a/gnunet-build/packages/gnunet/gnunet/Buildrules +++ b/gnunet-build/packages/gnunet/gnunet/Buildrules @@ -160,7 +160,6 @@ pkg_compile() { emcc -fno-strict-aliasing -Wall \ -O2 \ -s DLOPEN_SUPPORT=1 -s MAIN_MODULE=1 \ - -s ALLOW_MEMORY_GROWTH=1 \ -s EXPORTED_FUNCTIONS=@ats.exports \ "-I${SYSROOT}/usr/include" "-L${SYSROOT}/usr/lib" \ -o "${S}/src/ats/gnunet-service-ats.js" \ @@ -290,8 +289,8 @@ pkg_compile() { ./libtool --tag=CC --mode=link \ emcc -fno-strict-aliasing -Wall \ -O2 \ + -s TOTAL_MEMORY=$((32 * 1024 * 1024)) \ -s DLOPEN_SUPPORT=1 -s MAIN_MODULE=1 \ - -s ALLOW_MEMORY_GROWTH=1 \ -s EXPORTED_FUNCTIONS=@dht.exports \ "-I${SYSROOT}/usr/include" "-L${SYSROOT}/usr/lib" \ -o "${S}/src/dht/gnunet-service-dht.js" \ @@ -430,8 +429,8 @@ pkg_compile() { ./libtool --tag=CC --mode=link \ emcc -fno-strict-aliasing -Wall \ -O2 \ + -s TOTAL_MEMORY=$((32 * 1024 * 1024)) \ -s DLOPEN_SUPPORT=1 -s MAIN_MODULE=1 \ - -s ALLOW_MEMORY_GROWTH=1 \ -s EXPORTED_FUNCTIONS=@fs.exports \ "-I${SYSROOT}/usr/include" "-L${SYSROOT}/usr/lib" \ -o "${S}/src/fs/gnunet-service-fs.js" \ |