diff options
author | max99x <max99x@gmail.com> | 2011-08-05 16:31:48 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-08-05 16:31:48 +0300 |
commit | 274f2b8985ddd8ec91a1736764ffaf3b6c9d8128 (patch) | |
tree | c019d600d3685830825ed5c8381508c62dc28cec | |
parent | 979246c3556fbaf41fcd74b43f1fdab3a8dcd196 (diff) |
Made global allocations non-static in shared libraries.
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index c0f7ccb1..016c7df6 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -212,7 +212,7 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { }); constant = '[' + constant.join(', ') + ']'; } - constant = makePointer(constant, null, 'ALLOC_STATIC', item.type); + constant = makePointer(constant, null, BUILD_AS_SHARED_LIB ? 'ALLOC_NORMAL' : 'ALLOC_STATIC', item.type); var js = item.ident + '=' + constant + ';'; if (item.ident in EXPORTED_GLOBALS) { |