File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,18 @@ TAR_REPRODUCIBLE = tar --mtime="@${SOURCE_DATE_EPOCH}" --sort=name --owner=0 --g
27
27
# (Note we should also make installation of the units conditional on the rhsm feature)
28
28
CARGO_FEATURES ?= $(shell . /usr/lib/os-release; if echo "$$ID_LIKE" |grep -qF rhel; then echo rhsm; fi)
29
29
30
+ # https://issues.redhat.com/browse/RHEL-116881
31
+ ARCH ?= $(shell uname -m)
32
+ ID ?= $(shell [ -f /etc/os-release ] && . /etc/os-release && echo $$ID)
33
+ VERSION_ID ?= $(shell [ -f /etc/os-release ] && . /etc/os-release && echo $$VERSION_ID)
34
+ ifeq ($(ARCH ) -$(ID ) -$(VERSION_ID ) ,s390x-centos-10)
35
+ CARGO_BUILD_ENV ?= MALLOC_MMAP_MAX_=0
36
+ endif
37
+
30
38
all : bin manpages
31
39
32
40
bin :
33
- cargo build --release --features " $( CARGO_FEATURES) "
41
+ $( CARGO_BUILD_ENV ) cargo build --release --features " $( CARGO_FEATURES) "
34
42
35
43
.PHONY : manpages
36
44
manpages :
You can’t perform that action at this time.
0 commit comments