summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2012-11-19 09:55:26 (GMT)
committerJason Evans <jasone@canonware.com>2012-11-25 18:23:40 (GMT)
commit9906660eb7365abb54e4495407ffddb1069ef654 (patch)
tree453bf3019c2e291a9f49f2c77b4ad138e66671db /configure.ac
parenta3b3386ddde8048b9d6b54c397bb93da5e806cef (diff)
downloadjemalloc-9906660eb7365abb54e4495407ffddb1069ef654.zip
jemalloc-9906660eb7365abb54e4495407ffddb1069ef654.tar.gz
jemalloc-9906660eb7365abb54e4495407ffddb1069ef654.tar.bz2
Allow to build without exporting symbols
When statically linking jemalloc, it may be beneficial not to export its symbols if it makes sense, which allows the compiler and the linker to do some further optimizations.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1c52439..8558961 100644
--- a/configure.ac
+++ b/configure.ac
@@ -471,6 +471,13 @@ for stem in ${public_syms}; do
AC_DEFINE_UNQUOTED([${n}], [${m}])
done
+AC_ARG_WITH([export],
+ [AS_HELP_STRING([--without-export], [disable exporting jemalloc public APIs])],
+ [if test "x$with_export" = "xno"; then
+ AC_DEFINE([JEMALLOC_EXPORT],[])]
+fi]
+)
+
dnl Do not mangle library-private APIs by default.
AC_ARG_WITH([private_namespace],
[AS_HELP_STRING([--with-private-namespace=<prefix>], [Prefix to prepend to all library-private APIs])],