Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5f89c1d4
Unverified
Commit
5f89c1d4
authored
Oct 24, 2021
by
Yossi Gottlieb
Committed by
GitHub
Oct 24, 2021
Browse files
Handle cross-compiling when configuring jemalloc. (#9659)
parent
cf860df5
Changes
1
Hide whitespace changes
Inline
Side-by-side
deps/Makefile
View file @
5f89c1d4
...
@@ -86,9 +86,13 @@ lua: .make-prerequisites
...
@@ -86,9 +86,13 @@ lua: .make-prerequisites
JEMALLOC_CFLAGS
=
-std
=
gnu99
-Wall
-pipe
-g3
-O3
-funroll-loops
$(CFLAGS)
JEMALLOC_CFLAGS
=
-std
=
gnu99
-Wall
-pipe
-g3
-O3
-funroll-loops
$(CFLAGS)
JEMALLOC_LDFLAGS
=
$(LDFLAGS)
JEMALLOC_LDFLAGS
=
$(LDFLAGS)
ifneq
($(DEB_HOST_GNU_TYPE),)
JEMALLOC_CONFIGURE_OPTS
+=
--host
=
$(DEB_HOST_GNU_TYPE)
endif
jemalloc
:
.make-prerequisites
jemalloc
:
.make-prerequisites
@
printf
'%b %b\n'
$(MAKECOLOR)
MAKE
$(ENDCOLOR)
$(BINCOLOR)$@$(ENDCOLOR)
@
printf
'%b %b\n'
$(MAKECOLOR)
MAKE
$(ENDCOLOR)
$(BINCOLOR)$@$(ENDCOLOR)
cd
jemalloc
&&
./configure
--with-version
=
5.2.1-0-g0
--with-lg-quantum
=
3
--with-jemalloc-prefix
=
je_
CFLAGS
=
"
$(JEMALLOC_CFLAGS)
"
LDFLAGS
=
"
$(JEMALLOC_LDFLAGS)
"
cd
jemalloc
&&
./configure
--with-version
=
5.2.1-0-g0
--with-lg-quantum
=
3
--with-jemalloc-prefix
=
je_
CFLAGS
=
"
$(JEMALLOC_CFLAGS)
"
LDFLAGS
=
"
$(JEMALLOC_LDFLAGS)
"
$(JEMALLOC_CONFIGURE_OPTS)
cd
jemalloc
&&
$(MAKE)
CFLAGS
=
"
$(JEMALLOC_CFLAGS)
"
LDFLAGS
=
"
$(JEMALLOC_LDFLAGS)
"
lib/libjemalloc.a
cd
jemalloc
&&
$(MAKE)
CFLAGS
=
"
$(JEMALLOC_CFLAGS)
"
LDFLAGS
=
"
$(JEMALLOC_LDFLAGS)
"
lib/libjemalloc.a
.PHONY
:
jemalloc
.PHONY
:
jemalloc
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment