summaryrefslogtreecommitdiffstats
path: root/jemalloc
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2011-03-15 17:25:59 (GMT)
committerJason Evans <je@fb.com>2011-03-15 17:25:59 (GMT)
commitfa5d245aef7087c19c375590a7ee2966a0ae339a (patch)
treef4d1c016e3de598bc39b9b20868da85918025c4d /jemalloc
parent0e4d0d13f9beb8857bb377f41b4fbd327d3a0cbd (diff)
downloadjemalloc-fa5d245aef7087c19c375590a7ee2966a0ae339a.zip
jemalloc-fa5d245aef7087c19c375590a7ee2966a0ae339a.tar.gz
jemalloc-fa5d245aef7087c19c375590a7ee2966a0ae339a.tar.bz2
Set default symbol visibility to hidden.
Compile with -fvisibility=hidden rather than -fvisibility=internal, in order to avoid PLT lookups for internal functions. Also fix a regression that caused the -fvisibility flag to be omitted, due to: Port to Mac OS X. 2dbecf1f6267fae7a161b9c39cfd4d04ce168a29
Diffstat (limited to 'jemalloc')
-rw-r--r--jemalloc/configure.ac22
1 files changed, 11 insertions, 11 deletions
diff --git a/jemalloc/configure.ac b/jemalloc/configure.ac
index 46a2bd4..f10641b 100644
--- a/jemalloc/configure.ac
+++ b/jemalloc/configure.ac
@@ -157,17 +157,6 @@ case "${host_cpu}" in
esac
AC_DEFINE_UNQUOTED([CPU_SPINWAIT], [$CPU_SPINWAIT])
-JE_COMPILABLE([__attribute__ syntax],
- [static __attribute__((unused)) void foo(void){}],
- [],
- [attribute])
-if test "x${attribute}" = "xyes" ; then
- AC_DEFINE([JEMALLOC_HAVE_ATTR], [ ])
- if test "x$GCC" = "xyes" -a "${abi}" = "xelf"; then
- JE_CFLAGS_APPEND([-fvisibility=internal])
- fi
-fi
-
dnl Platform-specific settings. abi and RPATH can probably be determined
dnl programmatically, but doing so is error-prone, which makes it generally
dnl not worth the trouble.
@@ -227,6 +216,17 @@ esac
AC_SUBST([abi])
AC_SUBST([RPATH])
+JE_COMPILABLE([__attribute__ syntax],
+ [static __attribute__((unused)) void foo(void){}],
+ [],
+ [attribute])
+if test "x${attribute}" = "xyes" ; then
+ AC_DEFINE([JEMALLOC_HAVE_ATTR], [ ])
+ if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
+ JE_CFLAGS_APPEND([-fvisibility=hidden])
+ fi
+fi
+
JE_COMPILABLE([mremap(...MREMAP_FIXED...)], [
#define _GNU_SOURCE
#include <sys/mman.h>