summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-10-28 23:03:25 -0700
committerJason Evans <jasone@canonware.com>2016-10-28 23:21:14 -0700
commit35799a50308b5c88ba8ed41f4e48d3b619482c7d (patch)
treee1a10d1614ec0ba66418f890c1cece8b9f7c19c8
parented84764a2a6d766a74fa1df3223d69977d732510 (diff)
downloadjemalloc-35799a50308b5c88ba8ed41f4e48d3b619482c7d.tar.gz
Do not mark malloc_conf as weak for unit tests.
This is generally correct (no need for weak symbols since no jemalloc library is involved in the link phase), and avoids linking problems (apparently unininitialized non-NULL malloc_conf) when using cygwin with gcc.
-rw-r--r--src/jemalloc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c
index b370f9c8..24357635 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -5,7 +5,11 @@
/* Data. */
/* Runtime configuration options. */
-const char *je_malloc_conf JEMALLOC_ATTR(weak);
+const char *je_malloc_conf
+#ifndef JEMALLOC_JET
+ JEMALLOC_ATTR(weak)
+#endif
+ ;
bool opt_abort =
#ifdef JEMALLOC_DEBUG
true