mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00
[Bug #20500] Search non-default directories for jemalloc
Co-Authored-by: lish82 (Hiroki Katagiri)
This commit is contained in:
parent
fc9acbaac2
commit
5fa6ba9568
2 changed files with 5 additions and 1 deletions
|
@ -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@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue