Temporary change to build bash 5.0 static linked for SLES-15

OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=294
This commit is contained in:
Dr. Werner Fink 2019-05-16 07:55:19 +00:00 committed by Git OBS Bridge
parent b7cee26ef7
commit f4686f5e13

View File

@ -304,6 +304,11 @@ test ${rl1[2]} = ${rl2[2]} || exit 1
LARGEFILE="$(getconf LFS_CFLAGS)" LARGEFILE="$(getconf LFS_CFLAGS)"
CFLAGS="$RPM_OPT_FLAGS $LARGEFILE -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g" CFLAGS="$RPM_OPT_FLAGS $LARGEFILE -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g"
LDFLAGS="" LDFLAGS=""
%if 0%{?sle_version} > 0
%if 0%{?suse_version} == 1500
LDFLAGS="-Wl,-Bstatic -lreadline -Wl,-Bdynamic"
%endif
%endif
# #
# Never ever put -DMUST_UNBLOCK_CHLD herein as this breaks bash # Never ever put -DMUST_UNBLOCK_CHLD herein as this breaks bash
# #
@ -352,11 +357,6 @@ test ${rl1[2]} = ${rl2[2]} || exit 1
# #
READLINE=" READLINE="
--with-installed-readline --with-installed-readline
%if 0%{?sle_version} > 0
%if 0%{?suse_version} == 1500
--enable-static-link
%endif
%endif
" "
bash support/mkconffiles -v bash support/mkconffiles -v
%if %_minsh %if %_minsh