diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2023-03-03 11:50:47 +0700 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-03-03 13:05:28 +0300 |
commit | 2d73e5982bdec009f259353e32af0c88df9d2a35 (patch) | |
tree | 557269aea5feb841f07fe706afb10fa189d54030 | |
parent | b9eb5da2469d33e5f74d71bed5c2920166bff60e (diff) | |
download | bdwgc-2d73e5982bdec009f259353e32af0c88df9d2a35.tar.gz |
Remove EXPORTED_FUNCTIONS linker flag for gctest (Emscripten)
Issue #532 (bdwgc).
When mmap was used, there was apparently a need to export memalign
and memset from the WebAssembly code to JS for the mmap emulation
code to use.
The mmap code path is no longer used with the Emscripten support,
so this export is no longer needed. The explicit export of _main is
not required; according to the Emscripten code: by default if this
setting is not specified on the command line the _main function will
be implicitly exported.
* tests/tests.am [EMSCRIPTEN] (gctest_html_LDFLAGS): Remove.
-rw-r--r-- | tests/tests.am | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/tests.am b/tests/tests.am index 4794348d..7b1d4367 100644 --- a/tests/tests.am +++ b/tests/tests.am @@ -30,9 +30,6 @@ if EMSCRIPTEN check_PROGRAMS += gctest.html gctest_html_SOURCES = $(gctest_SOURCES) gctest_html_LDADD = $(gctest_LDADD) -# Bug in the linker not being able to determine that _memalign and _memset -# are needed? it's part of mmap. -gctest_html_LDFLAGS = -s "EXPORTED_FUNCTIONS=['_memalign', '_main', '_memset']" endif TESTS += hugetest$(EXEEXT) |