diff options
| author | Jason Evans <jasone@canonware.com> | 2016-10-29 06:59:42 (GMT) |
|---|---|---|
| committer | Jason Evans <jasone@canonware.com> | 2016-10-29 07:16:30 (GMT) |
| commit | e46f8f97bc4dc3298e1d3b452ee69616fdbcd43e (patch) | |
| tree | a6b83b8869a883f38d3b694978551be3d9d5415e | |
| parent | 35799a50308b5c88ba8ed41f4e48d3b619482c7d (diff) | |
| download | jemalloc-e46f8f97bc4dc3298e1d3b452ee69616fdbcd43e.zip jemalloc-e46f8f97bc4dc3298e1d3b452ee69616fdbcd43e.tar.gz jemalloc-e46f8f97bc4dc3298e1d3b452ee69616fdbcd43e.tar.bz2 | |
Do not mark malloc_conf as weak on Windows.
This works around malloc_conf not being properly initialized by at least
the cygwin toolchain. Prior build system changes to use
-Wl,--[no-]whole-archive may be necessary for malloc_conf resolution to
work properly as a non-weak symbol (not tested).
| -rw-r--r-- | src/jemalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index 2435763..8210086 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -6,7 +6,7 @@ /* Runtime configuration options. */ const char *je_malloc_conf -#ifndef JEMALLOC_JET +#ifndef _WIN32 JEMALLOC_ATTR(weak) #endif ; |
