зеркало из https://github.com/github/ruby.git
[Bug #20500] Search non-default directories for jemalloc
Co-Authored-by: lish82 (Hiroki Katagiri)
This commit is contained in:
Родитель
fc9acbaac2
Коммит
5fa6ba9568
|
@ -1388,6 +1388,8 @@ AC_ARG_WITH([jemalloc],
|
|||
[with_jemalloc=$withval], [with_jemalloc=no])
|
||||
AS_IF([test "x$with_jemalloc" != xno],[
|
||||
# find jemalloc header first
|
||||
save_CPPFLAGS="${CPPFLAGS}"
|
||||
CPPFLAGS="${INCFLAGS} ${CPPFLAGS}"
|
||||
malloc_header=
|
||||
AC_CHECK_HEADER(jemalloc/jemalloc.h, [malloc_header=jemalloc/jemalloc.h], [
|
||||
AC_CHECK_HEADER(jemalloc.h, [malloc_header=jemalloc.h])
|
||||
|
@ -1419,6 +1421,8 @@ AS_IF([test "x$with_jemalloc" != xno],[
|
|||
done
|
||||
done
|
||||
])
|
||||
CPPFLAGS="${save_CPPFLAGS}"
|
||||
unset save_CPPFLAGS
|
||||
with_jemalloc=${rb_cv_jemalloc_library}
|
||||
AS_CASE(["$with_jemalloc"],
|
||||
[no],
|
||||
|
|
|
@ -52,7 +52,7 @@ optflags = @optflags@
|
|||
debugflags = @debugflags@
|
||||
warnflags = @warnflags@
|
||||
CCDLFLAGS = @CCDLFLAGS@
|
||||
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(top_srcdir)
|
||||
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(top_srcdir) @incflags@
|
||||
DEFS = @DEFS@
|
||||
CPPFLAGS = @CPPFLAGS@ -DONIG_ENC_REGISTER=rb_enc_register
|
||||
LDFLAGS = @LDFLAGS@
|
||||
|
|
Загрузка…
Ссылка в новой задаче