mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 16:43:33 +03:00
Add a configure option --enable-force-getenv.
Allows the use of getenv() rather than secure_getenv() to read MALLOC_CONF. This helps in situations where hosts are under full control, and setting MALLOC_CONF is needed while also setuid. Disabled by default.
This commit is contained in:
parent
143e9c4a2f
commit
481bbfc990
3 changed files with 32 additions and 6 deletions
16
configure.ac
16
configure.ac
|
|
@ -1571,6 +1571,22 @@ if test "x$enable_readlinkat" = "x1" ; then
|
|||
fi
|
||||
AC_SUBST([enable_readlinkat])
|
||||
|
||||
dnl Do not force getenv by default
|
||||
AC_ARG_ENABLE([force-getenv],
|
||||
[AS_HELP_STRING([--enable-force-getenv], [Use getenv over secure_getenv])],
|
||||
[if test "x$enable_force_getenv" = "xno" ; then
|
||||
enable_force_getenv="0"
|
||||
else
|
||||
enable_force_getenv="1"
|
||||
fi
|
||||
],
|
||||
[enable_force_getenv="0"]
|
||||
)
|
||||
if test "x$enable_force_getenv" = "x1" ; then
|
||||
AC_DEFINE([JEMALLOC_FORCE_GETENV], [ ], [ ])
|
||||
fi
|
||||
AC_SUBST([force_getenv])
|
||||
|
||||
dnl Avoid extra safety checks by default
|
||||
AC_ARG_ENABLE([opt-safety-checks],
|
||||
[AS_HELP_STRING([--enable-opt-safety-checks],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue