Resolves: #2226653 - disable vmalloc and force use of the operating system's malloc
This commit is contained in:
parent
e9d1130015
commit
29db36d4a4
9
ksh.spec
9
ksh.spec
@ -6,7 +6,7 @@ Summary: The Original ATT Korn Shell
|
|||||||
URL: http://www.kornshell.com/
|
URL: http://www.kornshell.com/
|
||||||
License: EPL
|
License: EPL
|
||||||
Version: %{releasedate}
|
Version: %{releasedate}
|
||||||
Release: 257%{?dist}
|
Release: 258%{?dist}
|
||||||
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{release_date}.tgz
|
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{release_date}.tgz
|
||||||
Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{release_date}.tgz
|
Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{release_date}.tgz
|
||||||
Source2: kshcomp.conf
|
Source2: kshcomp.conf
|
||||||
@ -264,8 +264,9 @@ sed -i '/-c sh\/main.c/s|${mam_cc_FLAGS} |${mam_cc_FLAGS} ${CCFLAGS} |p' src/cmd
|
|||||||
sed -i 1i"#define register" src/lib/libast/include/ast.h
|
sed -i 1i"#define register" src/lib/libast/include/ast.h
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# rhbz#2226653: -D_std_malloc (disable vmalloc and force use of the operating system's malloc)
|
||||||
XTRAFLAGS=""
|
XTRAFLAGS=""
|
||||||
for f in -Wno-unknown-pragmas -Wno-missing-braces -Wno-unused-result -Wno-return-type -Wno-int-to-pointer-cast -Wno-parentheses -Wno-unused -Wno-unused-but-set-variable -Wno-cpp -P
|
for f in -D_std_malloc -Wno-unknown-pragmas -Wno-missing-braces -Wno-unused-result -Wno-return-type -Wno-int-to-pointer-cast -Wno-parentheses -Wno-unused -Wno-unused-but-set-variable -Wno-cpp -P
|
||||||
do
|
do
|
||||||
gcc $f -E - </dev/null >/dev/null 2>&1 && XTRAFLAGS="$XTRAFLAGS $f"
|
gcc $f -E - </dev/null >/dev/null 2>&1 && XTRAFLAGS="$XTRAFLAGS $f"
|
||||||
done
|
done
|
||||||
@ -384,6 +385,10 @@ fi
|
|||||||
%config(noreplace) %{_sysconfdir}/binfmt.d/kshcomp.conf
|
%config(noreplace) %{_sysconfdir}/binfmt.d/kshcomp.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 26 2023 Vincent Mihalkovic <vmihalko@redhat.com> - 20120801-258
|
||||||
|
- disable vmalloc and force use of the operating system's malloc
|
||||||
|
Resolves: #2226653
|
||||||
|
|
||||||
* Mon Aug 08 2022 Vincent Mihalkovic <vmihalko@redhat.com> - 20120801-257
|
* Mon Aug 08 2022 Vincent Mihalkovic <vmihalko@redhat.com> - 20120801-257
|
||||||
- Stack robustness fixes (two patches)
|
- Stack robustness fixes (two patches)
|
||||||
Resolves: #2116372
|
Resolves: #2116372
|
||||||
|
Loading…
Reference in New Issue
Block a user